|
Enfusion Script API
|
6 DOF spring joint simulation. More...
Public Member Functions | |
| proto external void | SetSpring (int axis, float stiffness, float damping) |
| Sets spring parameters on a particular axis. | |
Public Member Functions inherited from Physics6DOFJoint | |
| proto external void | SetLinearLimits (vector linearLower, vector linearUpper) |
| Sets linear limits of the joint. | |
| proto external void | SetAngularLimits (vector angularLower, vector angularUpper) |
| Sets angular limits of the joint. | |
| proto external void | SetLimit (int axis, float limitLower, float limitUpper) |
| Sets limits of the joint. | |
Public Member Functions inherited from PhysicsJoint | |
| proto external void | Destroy () |
| Destroys joint. | |
Public Member Functions inherited from pointer | |
| proto string | ToString () |
Additional Inherited Members | |
Static Public Member Functions inherited from PhysicsJoint | |
| static proto PhysicsHingeJoint | CreateHinge (notnull IEntity ent1, IEntity ent2, vector point1, vector axis1, vector point2, vector axis2, bool disableCollisions, float breakThreshold=-1) |
| Creates hinge joint. | |
| static proto PhysicsHingeJoint | CreateHinge2 (notnull IEntity ent1, IEntity ent2, vector matrix1[4], vector matrix2[4], bool disableCollisions, float breakThreshold=-1) |
| Creates hinge joint. | |
| static proto PhysicsBallSocketJoint | CreateBallSocket (notnull IEntity ent1, IEntity ent2, vector point1, vector point2, bool disableCollisions, float breakThreshold=-1) |
| Creates ball socket joint. | |
| static proto PhysicsFixedJoint | CreateFixed (notnull IEntity ent1, IEntity ent2, vector point1, vector point2, bool disableCollisions, float breakThreshold=-1) |
| Creates fixed joint. | |
| static proto PhysicsConeTwistJoint | CreateConeTwist (notnull IEntity ent1, IEntity ent2, vector matrix1[4], vector matrix2[4], bool disableCollisions, float breakThreshold=-1) |
| Creates cone twist joint. | |
| static proto PhysicsSliderJoint | CreateSlider (notnull IEntity ent1, IEntity ent2, vector matrix1[4], vector matrix2[4], bool disableCollisions, float breakThreshold=-1) |
| Creates slider joint. | |
| static proto Physics6DOFJoint | Create6DOF (notnull IEntity ent1, IEntity ent2, vector matrix1[4], vector matrix2[4], bool disableCollisions, float breakThreshold=-1) |
| Creates 6 DOF joint. | |
| static proto Physics6DOFSpringJoint | Create6DOFSpring (notnull IEntity ent1, IEntity ent2, vector matrix1[4], vector matrix2[4], bool disableCollisions, float breakThreshold=-1) |
| Creates DOF spring joint. | |
6 DOF spring joint simulation.
Sets spring parameters on a particular axis.
When stiffness == -1 && damping == -1, spring is disabled.
| axis | Axis to be modified |
| stiffness | Value of the spring stiffness (Hooke's Law) |
| damping | Value of the spring damping. Between 0 and 1 (1 == no damping) |