Class BulletGearJoint3D
The BulletJoint3D is a base class for all 3D joints implemented by Bullet.
Inherited Members
Namespace: Evergine.Bullet
Assembly: Evergine.Bullet.dll
Syntax
public class BulletGearJoint3D : BulletJoint3D<GearConstraint, GearJointDef3D>, IGearJoint3D, IJoint3D, IDisposable
Constructors
BulletGearJoint3D(BulletPhysicManager3D, GearJointDef3D)
Initializes a new instance of the BulletGearJoint3D class.
Declaration
public BulletGearJoint3D(BulletPhysicManager3D simulation, GearJointDef3D def)
Parameters
Type | Name | Description |
---|---|---|
BulletPhysicManager3D | simulation | The bullet simulation instance. |
GearJointDef3D | def | The definition. |
Properties
AxisInA
Gets or sets the axis in A.
Declaration
public Vector3 AxisInA { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
AxisInB
Gets or sets the axis in B.
Declaration
public Vector3 AxisInB { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Ratio
Gets or sets the A:B gear ratio.
Declaration
public float Ratio { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
CreateJoint()
Instantiate joint.
Declaration
protected override GearConstraint CreateJoint()
Returns
Type | Description |
---|---|
GearConstraint | The new joint. |
Overrides
Implements
Evergine.Framework.Physics3D.IGearJoint3D
Evergine.Framework.Physics3D.IJoint3D