Class ConeTwistConstraint
public class ConeTwistConstraint : Constraint, IDisposable, IRelative
- Inheritance
-
ConeTwistConstraint
- Implements
- Inherited Members
- Extension Methods
Properties
FixThresh
Gets or sets the fix thresh.
public float FixThresh { get; set; }
Property Value
- float
The fix thresh.
IsPastSwingLimit
Gets a value indicating whether this instance is past swing limit.
public bool IsPastSwingLimit { get; }
Property Value
- bool
true
if this instance is past swing limit; otherwise,false
.
SolveSwingLimit
Gets the solve swing limit.
public int SolveSwingLimit { get; }
Property Value
- int
The solve swing limit.
SolveTwistLimit
Gets the solve twist limit.
public int SolveTwistLimit { get; }
Property Value
- int
The solve twist limit.
SwingSpan1
Gets the swing span1.
public float SwingSpan1 { get; }
Property Value
- float
The swing span1.
SwingSpan2
Gets the swing span2.
public float SwingSpan2 { get; }
Property Value
- float
The swing span2.
TwistAngle
Gets the twist angle.
public float TwistAngle { get; }
Property Value
- float
The twist angle.
TwistLimitSign
Gets the twist limit sign.
public float TwistLimitSign { get; }
Property Value
- float
The twist limit sign.
TwistSpan
Gets the twist span.
public float TwistSpan { get; }
Property Value
- float
The twist span.
Methods
EnableMotor(bool)
Enables the motor.
public void EnableMotor(bool b)
Parameters
b
boolif set to
true
[b].
SetAngularOnly(bool)
Sets the angular only.
public void SetAngularOnly(bool angularOnly)
Parameters
angularOnly
boolif set to
true
[angular only].
SetDamping(float)
Sets the damping.
public void SetDamping(float damping)
Parameters
damping
floatThe damping.
SetFrames(Matrix, Matrix)
Sets the frames.
public void SetFrames(Matrix frameA, Matrix frameB)
Parameters
SetLimit(float, float, float)
Sets the limit.
public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan)
Parameters
SetLimit(float, float, float, float, float)
Sets the limit.
public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan, float softness, float biasFactor)
Parameters
swingSpan1
floatThe swing span1.
swingSpan2
floatThe swing span2.
twistSpan
floatThe twist span.
softness
floatThe softness.
biasFactor
floatThe bias factor.
SetLimit(float, float, float, float, float, float)
Sets the limit.
public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan, float softness, float biasFactor, float relaxationFactor)
Parameters
swingSpan1
floatThe swing span1.
swingSpan2
floatThe swing span2.
twistSpan
floatThe twist span.
softness
floatThe softness.
biasFactor
floatThe bias factor.
relaxationFactor
floatThe relaxation factor.
SetMaxMotorImpulse(float)
Sets the maximum motor impulse.
public void SetMaxMotorImpulse(float maxMotorImpulse)
Parameters
maxMotorImpulse
floatThe maximum motor impulse.
SetMaxMotorImpulseNormalized(float)
Sets the maximum motor impulse normalized.
public void SetMaxMotorImpulseNormalized(float maxMotorImpulse)
Parameters
maxMotorImpulse
floatThe maximum motor impulse.
SetMotorTarget(Quaternion)
Sets the motor target.
public void SetMotorTarget(Quaternion q)
Parameters
q
QuaternionThe q.
SetMotorTargetInConstraintSpace(Quaternion)
Sets the motor target in constraint space.
public void SetMotorTargetInConstraintSpace(Quaternion q)
Parameters
q
QuaternionThe q.