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

Slider joint simulation. More...

Inheritance diagram for PhysicsSliderJoint:
[legend]

Public Member Functions

proto external void SetLinearLimits (float lowerLimit, float upperLimit)
 Sets linear limits of the joint.
 
proto external float GetLinearPos ()
 Returns value of the linear position.
 
proto external float GetAngularPos ()
 Returns value of the angular position.
 
proto external void SetAngularLimits (float lowerLimit, float upperLimit)
 Sets angular limits of the joint.
 
proto external void SetDirLinear (float softness, float restitution, float damping)
 Sets parameters relevant for moving inside linear limits.
 
proto external void SetDirAngular (float softness, float restitution, float damping)
 Sets parameters relevant for moving inside angular limits.
 
proto external void SetLimLinear (float softness, float restitution, float damping)
 Sets parameters relevant for hitting linear limit.
 
proto external void SetLimAngular (float softness, float restitution, float damping)
 Sets parameters relevant for hitting angular limit.
 
proto external void SetOrthoLinear (float softness, float restitution, float damping)
 Sets parameters relevant for case (against constraint axis)
 
proto external void SetOrthoAngular (float softness, float restitution, float damping)
 Sets parameters relevant for case (against constraint axis)
 
proto external void SetLinearMotor (float velocity, float force)
 Allows motor to move slider at specific linear velocity.
 
proto external void SetAngularMotor (float velocity, float force)
 Allows motor to move slider at specific angular velocity.
 
- 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

Slider joint simulation.

Member Function Documentation

◆ GetAngularPos()

proto external float PhysicsSliderJoint.GetAngularPos ( )

Returns value of the angular position.

◆ GetLinearPos()

proto external float PhysicsSliderJoint.GetLinearPos ( )

Returns value of the linear position.

◆ SetAngularLimits()

proto external void PhysicsSliderJoint.SetAngularLimits ( float  lowerLimit,
float  upperLimit 
)

Sets angular limits of the joint.

Parameters
lowerLimitValue of the lower angular limit
upperLimitValue of the upper angular limit

◆ SetAngularMotor()

proto external void PhysicsSliderJoint.SetAngularMotor ( float  velocity,
float  force 
)

Allows motor to move slider at specific angular velocity.

Parameters
velocityTarget angular velocity motor tries to maintain
forceMaximum angular force motor can overcome. 0 to turn motor off.

◆ SetDirAngular()

proto external void PhysicsSliderJoint.SetDirAngular ( float  softness,
float  restitution,
float  damping 
)

Sets parameters relevant for moving inside angular limits.

Parameters
softness
restitution
damping

◆ SetDirLinear()

proto external void PhysicsSliderJoint.SetDirLinear ( float  softness,
float  restitution,
float  damping 
)

Sets parameters relevant for moving inside linear limits.

Parameters
softness
restitution
damping

◆ SetLimAngular()

proto external void PhysicsSliderJoint.SetLimAngular ( float  softness,
float  restitution,
float  damping 
)

Sets parameters relevant for hitting angular limit.

Parameters
softness
restitution
damping

◆ SetLimLinear()

proto external void PhysicsSliderJoint.SetLimLinear ( float  softness,
float  restitution,
float  damping 
)

Sets parameters relevant for hitting linear limit.

Parameters
softness
restitution
damping

◆ SetLinearLimits()

proto external void PhysicsSliderJoint.SetLinearLimits ( float  lowerLimit,
float  upperLimit 
)

Sets linear limits of the joint.

Parameters
lowerLimitValue of the lower linear limit
upperLimitvalue of the upper linear limit

◆ SetLinearMotor()

proto external void PhysicsSliderJoint.SetLinearMotor ( float  velocity,
float  force 
)

Allows motor to move slider at specific linear velocity.

Parameters
velocityTarget linear velocity motor tries to maintain
forceMaximum linear force motor can overcome. 0 to turn motor off.

◆ SetOrthoAngular()

proto external void PhysicsSliderJoint.SetOrthoAngular ( float  softness,
float  restitution,
float  damping 
)

Sets parameters relevant for case (against constraint axis)

Parameters
softness
restitution
damping

◆ SetOrthoLinear()

proto external void PhysicsSliderJoint.SetOrthoLinear ( float  softness,
float  restitution,
float  damping 
)

Sets parameters relevant for case (against constraint axis)

Parameters
softness
restitution
damping

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