Class ConeTwistJoint3D
This class represent a 3D physics joint and connects two entities together. All Joints restrict some degrees of freedom, seeking a specific configuration.
Inheritance
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class ConeTwistJoint3D : Joint3D<IConeTwistJoint3D, ConeTwistJointDef3D>, IDependencyObject, IDisposable
Constructors
ConeTwistJoint3D()
Initializes a new instance of the ConeTwistJoint3D class.
Declaration
public ConeTwistJoint3D()
Properties
Anchor
Gets or sets the local anchor point relative to bodyA's origin.
Declaration
public Vector3 Anchor { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
AngularOnly
Gets or sets a value indicating whether this apply angular only.
Declaration
public bool AngularOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
AutoConfigureConnected
Gets or sets a value indicating whether.
Declaration
[RenderProperty(Tag = 1)]
public bool AutoConfigureConnected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Axis
Gets or sets the hinge axis.
Declaration
public Vector3 Axis { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
ConeTwistSettings
Gets or sets the cone twist limits.
Declaration
[RenderProperty(ConverterType = typeof(Vector3RadianToDegreeConverter))]
public Vector3 ConeTwistSettings { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
ConnectedAnchor
Gets or sets the local anchor point relative to bodyA's origin.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = false)]
public Vector3 ConnectedAnchor { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
ConnectedAxis
Gets or sets the local anchor point relative to bodyA's origin.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = false)]
public Vector3 ConnectedAxis { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Damping
Gets or sets the damping value.
Declaration
public float Damping { get; set; }
Property Value
Type | Description |
---|---|
float |
FixThresh
Gets or sets the fix thresh.
Declaration
public float FixThresh { get; set; }
Property Value
Type | Description |
---|---|
float |
LimitBiasFactor
Gets or sets the strength with which constraint resists zeroth order.
Declaration
public float LimitBiasFactor { get; set; }
Property Value
Type | Description |
---|---|
float |
LimitRelaxationFactor
Gets or sets the limit relaxation factor. The lower the value, the less the constraint will fight velocities which violate the angular limits.
Declaration
public float LimitRelaxationFactor { get; set; }
Property Value
Type | Description |
---|---|
float |
LimitSoftness
Gets or sets the % of limits where movement is free.
Declaration
public float LimitSoftness { get; set; }
Property Value
Type | Description |
---|---|
float |
MaxMotorImpulse
Gets or sets the low limit.
Declaration
[RenderProperty(AttachToValue = true, AttachToTag = 2)]
public float MaxMotorImpulse { get; set; }
Property Value
Type | Description |
---|---|
float |
MotorTarget
Gets or sets the motor target velocity.
Declaration
public Quaternion MotorTarget { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
MotorTargetRotation
Gets or sets the motor target velocity.
Declaration
[RenderProperty(typeof(Vector3RadianToDegreeConverter), AttachToValue = true, AttachToTag = 2)]
public Vector3 MotorTargetRotation { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
UseMotor
Gets or sets a value indicating whether the joint has motor enabled.
Declaration
[RenderProperty(Tag = 2)]
public bool UseMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
BodyAChanged()
Body A is changed.
Declaration
protected override void BodyAChanged()
Overrides
BodyBChanged()
Body B is changed.
Declaration
protected override void BodyBChanged()
Overrides
FillJointDef(ConeTwistJointDef3D)
Fill joint def values.
Declaration
protected override bool FillJointDef(ConeTwistJointDef3D jointDef)
Parameters
Type | Name | Description |
---|---|---|
ConeTwistJointDef3D | jointDef | The generated joint values. |
Returns
Type | Description |
---|---|
bool | The result. |
Overrides
InitJoint()
Init joint.
Declaration
protected override void InitJoint()