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

Cone twist joint simulation. More...

Inheritance diagram for PhysicsConeTwistJoint:
[legend]

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.
 

Detailed Description

Cone twist joint simulation.

Member Function Documentation

◆ SetLimit()

proto external void PhysicsConeTwistJoint.SetLimit ( int  limitIndex,
float  limitValue 
)

Sets span values of limits.

Span represents range from -limit to limit.

Parameters
limitIndexIndex of the limit (3 - twist, 4 - swing2, 5 - swing1)
limitValueValue of the limit

◆ SetLimits()

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.

Parameters
swingSpan1Value of the swing1 limit (along z-axis)
swingSpan2Value of the swing2 limit (along y-axis)
twistSpanValue of the twist limit (along x-axis)
softnessSoftness of the joint. See details
biasFactorBias factor of the joint. See details
relaxationFactorRelaxation factor of the joint. See details

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