ConeTwistConstraint Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
public class ConeTwistConstraint : Constraint, IDisposable, IRelative
| Name | Description | |
|---|---|---|
| Properties | ||
| FixThresh | Gets or sets the fix thresh. |
|
| IsPastSwingLimit | Gets a value indicating whether this instance is past swing limit. |
|
| SolveSwingLimit | Gets the solve swing limit. |
|
| SolveTwistLimit | Gets the solve twist limit. |
|
| SwingSpan1 | Gets the swing span1. |
|
| SwingSpan2 | Gets the swing span2. |
|
| TwistAngle | Gets the twist angle. |
|
| TwistLimitSign | Gets the twist limit sign. |
|
| TwistSpan | Gets the twist span. |
|
| Methods | ||
| EnableMotor(Boolean) | Enables the motor. |
|
| SetAngularOnly(Boolean) | Sets the angular only. |
|
| SetDamping(Single) | Sets the damping. |
|
| SetFrames(Matrix, Matrix) | Sets the frames. |
|
| SetLimit(Single, Single, Single) | Sets the limit. |
|
| SetLimit(Single, Single, Single, Single, Single) | Sets the limit. |
|
| SetLimit(Single, Single, Single, Single, Single, Single) | Sets the limit. |
|
| SetMaxMotorImpulse(Single) | Sets the maximum motor impulse. |
|
| SetMaxMotorImpulseNormalized(Single) | Sets the maximum motor impulse normalized. |
|
| SetMotorTarget(Quaternion) | Sets the motor target. |
|
| SetMotorTargetInConstraintSpace(Quaternion) | Sets the motor target in constraint space. |
|
Properties
FixThresh
Gets or sets the fix thresh.
public float FixThresh { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The fix thresh. |
IsPastSwingLimit
Gets a value indicating whether this instance is past swing limit.
public bool IsPastSwingLimit { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
SolveSwingLimit
Gets the solve swing limit.
public int SolveSwingLimit { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The solve swing limit. |
SolveTwistLimit
Gets the solve twist limit.
public int SolveTwistLimit { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The solve twist limit. |
SwingSpan1
Gets the swing span1.
public float SwingSpan1 { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The swing span1. |
SwingSpan2
Gets the swing span2.
public float SwingSpan2 { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The swing span2. |
TwistAngle
Gets the twist angle.
public float TwistAngle { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The twist angle. |
TwistLimitSign
Gets the twist limit sign.
public float TwistLimitSign { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The twist limit sign. |
TwistSpan
Gets the twist span.
public float TwistSpan { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The twist span. |
Methods
EnableMotor(Boolean)
Enables the motor.
public void EnableMotor(bool b)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | b | if set to |
SetAngularOnly(Boolean)
Sets the angular only.
public void SetAngularOnly(bool angularOnly)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | angularOnly | if set to |
SetDamping(Single)
Sets the damping.
public void SetDamping(float damping)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | damping | The damping. |
SetFrames(Matrix, Matrix)
Sets the frames.
public void SetFrames(Matrix frameA, Matrix frameB)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix | frameA | The frame a. |
| Matrix | frameB | The frame b. |
SetLimit(Single, Single, Single)
Sets the limit.
public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | swingSpan1 | The swing span1. |
| System.Single | swingSpan2 | The swing span2. |
| System.Single | twistSpan | The twist span. |
SetLimit(Single, Single, Single, Single, Single)
Sets the limit.
public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan, float softness, float biasFactor)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | swingSpan1 | The swing span1. |
| System.Single | swingSpan2 | The swing span2. |
| System.Single | twistSpan | The twist span. |
| System.Single | softness | The softness. |
| System.Single | biasFactor | The bias factor. |
SetLimit(Single, Single, Single, Single, Single, Single)
Sets the limit.
public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan, float softness, float biasFactor, float relaxationFactor)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | swingSpan1 | The swing span1. |
| System.Single | swingSpan2 | The swing span2. |
| System.Single | twistSpan | The twist span. |
| System.Single | softness | The softness. |
| System.Single | biasFactor | The bias factor. |
| System.Single | relaxationFactor | The relaxation factor. |
SetMaxMotorImpulse(Single)
Sets the maximum motor impulse.
public void SetMaxMotorImpulse(float maxMotorImpulse)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | maxMotorImpulse | The maximum motor impulse. |
SetMaxMotorImpulseNormalized(Single)
Sets the maximum motor impulse normalized.
public void SetMaxMotorImpulseNormalized(float maxMotorImpulse)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | maxMotorImpulse | The maximum motor impulse. |
SetMotorTarget(Quaternion)
Sets the motor target.
public void SetMotorTarget(Quaternion q)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | q | The q. |
SetMotorTargetInConstraintSpace(Quaternion)
Sets the motor target in constraint space.
public void SetMotorTargetInConstraintSpace(Quaternion q)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | q | The q. |