Class BulletGeneric6DofSpringJoint3D
The BulletJoint3D is a base class for all 3D joints implemented by Bullet.
Inheritance
BulletAbstractGeneric6DofJoint3D <Generic6DofSpringConstraint , Generic6DofSpringJointDef3D , IGeneric6DofSpringJoint3D >
BulletGeneric6DofSpringJoint3D
Inherited Members
Namespace: Evergine.Bullet
Assembly: Evergine.Bullet.dll
Syntax
public class BulletGeneric6DofSpringJoint3D : BulletAbstractGeneric6DofJoint3D<Generic6DofSpringConstraint, Generic6DofSpringJointDef3D, IGeneric6DofSpringJoint3D>, IGeneric6DofSpringJoint3D, IGeneric6DofJoint3D, IJoint3D, IDisposable
Constructors
BulletGeneric6DofSpringJoint3D(BulletPhysicManager3D, Generic6DofSpringJointDef3D)
Initializes a new instance of the Bullet
Declaration
public BulletGeneric6DofSpringJoint3D(BulletPhysicManager3D simulation, Generic6DofSpringJointDef3D def)
Parameters
Type | Name | Description |
---|---|---|
Bullet |
simulation | The bullet simulation instance. |
Generic6Dof |
def | The definition. |
Methods
CreateJoint()
Instantiate joint.
Declaration
protected override Generic6DofSpringConstraint CreateJoint()
Returns
Type | Description |
---|---|
Generic6Dof |
The new joint. |
Overrides
EnableSpring(DOFType, bool)
Enable or disable the spring.
Declaration
public void EnableSpring(DOFType index, bool isEnabled)
Parameters
SetDamping(DOFType, float)
Sets the spring damping.
Declaration
public void SetDamping(DOFType index, float damping)
Parameters
SetEquilibriumPoint(DOFType, float)
Sets the spring equilibrium point.
Declaration
public void SetEquilibriumPoint(DOFType index, float equilibriumPoint)
Parameters
SetStiffness(DOFType, float)
Setsa the spring stiffness.
Declaration
public void SetStiffness(DOFType index, float stiffness)