Class GearJoint3D
This class represents a 3D physics joint and connects two entities together. All joints restrict some degrees of freedom, seeking a specific configuration.
Inheritance
GearJoint3D
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class GearJoint3D : Joint3D<IGearJoint3D, GearJointDef3D>, IDependencyObject
Constructors
GearJoint3D()
Initializes a new instance of the GearJoint3D class.
Declaration
public GearJoint3D()
Properties
AutoConfigureConnected
Gets or sets a value indicating whether the condition is true.
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 |
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 |
Ratio
Gets or sets the gear ratio between two bodies.
Declaration
public float Ratio { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
BodyAChanged()
Body A has been changed.
Declaration
protected override void BodyAChanged()
Overrides
BodyBChanged()
Body B has been changed.
Declaration
protected override void BodyBChanged()
Overrides
FillJointDef(GearJointDef3D)
Fills joint definition values.
Declaration
protected override bool FillJointDef(GearJointDef3D jointDef)
Parameters
Type | Name | Description |
---|---|---|
GearJointDef3D | jointDef | The generated joint values. |
Returns
Type | Description |
---|---|
bool | The result. |
Overrides
InitJoint()
Initializes the joint.
Declaration
protected override void InitJoint()