Enfusion Script API
|
6 DOF joint simulation. More...
Public Member Functions | |
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 joint simulation.
The first 3 DOF axes represent linear motion (translation) and the latter 3 DOF axes represent angular motion. Each axis can be configured to be either free, locked or limited. All axes are locked initially. Some combinations can lead to an undefined behavior.
Configuration of the axes:
Ranges of the angular limits:
Sets angular limits of the joint.
angularLower | Value of the lower angular limit |
angularUpper | Value of the upper angular limit |
Sets limits of the joint.
axis | Axis to be modified. First 3 are linear, next 3 are angular |
limitLower | Value of the lower limit |
limitUpper | Value of the upper limit |
Sets linear limits of the joint.
linearLower | Value of the lower linear limit |
linearUpper | Value of the upper linear limit |