Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Physics6DOFJoint Interface Reference

6 DOF joint simulation. More...

Inheritance diagram for Physics6DOFJoint:
[legend]

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.
 

Detailed Description

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:

Member Function Documentation

◆ SetAngularLimits()

proto external void Physics6DOFJoint.SetAngularLimits ( vector  angularLower,
vector  angularUpper 
)

Sets angular limits of the joint.

Parameters
angularLowerValue of the lower angular limit
angularUpperValue of the upper angular limit

◆ SetLimit()

proto external void Physics6DOFJoint.SetLimit ( int  axis,
float  limitLower,
float  limitUpper 
)

Sets limits of the joint.

Parameters
axisAxis to be modified. First 3 are linear, next 3 are angular
limitLowerValue of the lower limit
limitUpperValue of the upper limit

◆ SetLinearLimits()

proto external void Physics6DOFJoint.SetLinearLimits ( vector  linearLower,
vector  linearUpper 
)

Sets linear limits of the joint.

Parameters
linearLowerValue of the lower linear limit
linearUpperValue of the upper linear limit

The documentation for this interface was generated from the following file: