|
Enfusion Script API
|
Cone twist joint simulation. More...
Public Member Functions | |
| proto external void | SetLimit (int limitIndex, float limitValue) |
| Sets span values of limits. | |
| proto external void | SetLimits (float swingSpan1, float swingSpan2, float twistSpan, float softness, float biasFactor, float relaxationFactor) |
| Sets various joint parameters. | |
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. | |
Cone twist joint simulation.
Sets span values of limits.
Span represents range from -limit to limit.
| limitIndex | Index of the limit (3 - twist, 4 - swing2, 5 - swing1) |
| limitValue | Value of the limit |
| proto external void PhysicsConeTwistJoint.SetLimits | ( | float | swingSpan1, |
| float | swingSpan2, | ||
| float | twistSpan, | ||
| float | softness, | ||
| float | biasFactor, | ||
| float | relaxationFactor ) |
Sets various joint parameters.
Span value represents range from -limit to limit.
| swingSpan1 | Value of the swing1 limit (along z-axis) |
| swingSpan2 | Value of the swing2 limit (along y-axis) |
| twistSpan | Value of the twist limit (along x-axis) |
| softness | Softness of the joint. See details |
| biasFactor | Bias factor of the joint. See details |
| relaxationFactor | Relaxation factor of the joint. See details |