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 BulletGeneric6DofSpringJoint3D class.
Declaration
public BulletGeneric6DofSpringJoint3D(BulletPhysicManager3D simulation, Generic6DofSpringJointDef3D def)
Parameters
Type | Name | Description |
---|---|---|
BulletPhysicManager3D | simulation | The bullet simulation instance. |
Generic6DofSpringJointDef3D | def | The definition. |
Methods
CreateJoint()
Instantiate joint.
Declaration
protected override Generic6DofSpringConstraint CreateJoint()
Returns
Type | Description |
---|---|
Generic6DofSpringConstraint | The new joint. |
Overrides
EnableSpring(DOFType, bool)
Enable or disable the spring.
Declaration
public void EnableSpring(DOFType index, bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
DOFType | index | DOF index. |
bool | isEnabled | Is enabled or not the spring. |
SetDamping(DOFType, float)
Sets the spring damping.
Declaration
public void SetDamping(DOFType index, float damping)
Parameters
Type | Name | Description |
---|---|---|
DOFType | index | DOF index. |
float | damping | The damping. |
SetEquilibriumPoint(DOFType, float)
Sets the spring equilibrium point.
Declaration
public void SetEquilibriumPoint(DOFType index, float equilibriumPoint)
Parameters
Type | Name | Description |
---|---|---|
DOFType | index | DOF index. |
float | equilibriumPoint | The equilibriumPoint. |
SetStiffness(DOFType, float)
Setsa the spring stiffness.
Declaration
public void SetStiffness(DOFType index, float stiffness)
Parameters
Type | Name | Description |
---|---|---|
DOFType | index | DOF index. |
float | stiffness | The stiffness. |