Interface IConeTwistJoint3D
Interface for a Cone Twist 3D joint in physics.
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public interface IConeTwistJoint3D : IJoint3D
Properties
AFrame
Gets the reference frame on Body A.
Declaration
Matrix4x4 AFrame { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
AngularOnly
Gets or sets a value indicating whether this applies to Angular only.
Declaration
bool AngularOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
BFrame
Gets the reference frame on Body B.
Declaration
Matrix4x4 BFrame { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
Damping
Gets or sets the damping value.
Declaration
float Damping { get; set; }
Property Value
Type | Description |
---|---|
float |
FixThresh
Gets or sets the fix threshold.
Declaration
float FixThresh { get; set; }
Property Value
Type | Description |
---|---|
float |
Flags
Gets the hinge flags.
Declaration
int Flags { get; }
Property Value
Type | Description |
---|---|
int |
FrameOffsetA
Gets the frame offset for body A.
Declaration
Matrix4x4 FrameOffsetA { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
FrameOffsetB
Gets the frame offset for body B.
Declaration
Matrix4x4 FrameOffsetB { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
IsMaxMotorImpulseNormalized
Gets a value indicating whether this motor's impulse is normalized.
Declaration
bool IsMaxMotorImpulseNormalized { get; }
Property Value
Type | Description |
---|---|
bool |
IsMotorEnabled
Gets or sets a value indicating whether this motor is enabled.
Declaration
bool IsMotorEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsPastSwingLimit
Gets a value indicating whether the swing limit has been exceeded.
Declaration
bool IsPastSwingLimit { get; }
Property Value
Type | Description |
---|---|
bool |
LimitSoftness
Gets the limit softness.
Declaration
float LimitSoftness { get; }
Property Value
Type | Description |
---|---|
float |
MaxMotorImpulse
Gets or sets the maximum motor impulse.
Declaration
float MaxMotorImpulse { get; set; }
Property Value
Type | Description |
---|---|
float |
MotorTarget
Gets or sets the motor target.
Declaration
Quaternion MotorTarget { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
RelaxationFactor
Gets the relaxation factor.
Declaration
float RelaxationFactor { get; }
Property Value
Type | Description |
---|---|
float |
SolveSwingLimit
Gets the swing solve limit.
Declaration
int SolveSwingLimit { get; }
Property Value
Type | Description |
---|---|
int |
SolveTwistLimit
Gets the twist solve limit.
Declaration
int SolveTwistLimit { get; }
Property Value
Type | Description |
---|---|
int |
SwingSpan1
Gets the first swing span.
Declaration
float SwingSpan1 { get; }
Property Value
Type | Description |
---|---|
float |
SwingSpan2
Gets the swing span of 2.
Declaration
float SwingSpan2 { get; }
Property Value
Type | Description |
---|---|
float |
TwistLimitSign
Gets or sets the sign of the twist limit.
Declaration
float TwistLimitSign { get; set; }
Property Value
Type | Description |
---|---|
float |
TwistSpan
Gets the twist span.
Declaration
float TwistSpan { get; }
Property Value
Type | Description |
---|---|
float |
Methods
SetFrames(Matrix4x4, Matrix4x4)
Sets frames.
Declaration
void SetFrames(Matrix4x4 frameA, Matrix4x4 frameB)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | frameA | Frame A. |
Matrix4x4 | frameB | Frame B. |
SetLimit(float, float, float, float, float, float)
Sets limits.
Declaration
void SetLimit(float swingSpan1, float swingSpan2, float twistSpan, float softness = 1, float biasFactor = 0.3, float relaxationFactor = 1)
Parameters
Type | Name | Description |
---|---|---|
float | swingSpan1 | The swing span 1. |
float | swingSpan2 | The swing span 2. |
float | twistSpan | The twist span. |
float | softness | The amount the hinge rotates for a given force. |
float | biasFactor | Offset for the relaxed rotation of the hinge. |
float | relaxationFactor | The amount of force applied internally to bring the hinge to its central rotation. |
SetMaxMotorImpulseNormalized(float)
Sets the maximum motor impulse normalized.
Declaration
void SetMaxMotorImpulseNormalized(float impulse)
Parameters
Type | Name | Description |
---|---|---|
float | impulse | The impulse. |
SetMotorTargetInConstraintSpace(Quaternion)
Sets the motor target in constraint space.
Declaration
void SetMotorTargetInConstraintSpace(Quaternion target)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | target | The target orientation. |