DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
PhysicsHingeJoint Class Reference

Private Member Functions

proto external void SetLimits (float low, float high, float softness, float biasFactor, float relaxationFactor)
 
proto external void SetMotorTargetAngle (float angle, float dt, float maxImpulse)
 
proto external void SetMotor (bool enable, float targetVelocity, float maxImpulse)
 
proto external void SetAxis (vector axis)
 
proto external void SetLimits (float low, float high, float softness, float biasFactor, float relaxationFactor)
 
proto external void SetMotorTargetAngle (float angle, float dt, float maxImpulse)
 
proto external void SetMotor (bool enable, float targetVelocity, float maxImpulse)
 
proto external void SetAxis (vector axis)
 

Member Function Documentation

◆ SetAxis() [1/2]

proto external void SetAxis ( vector  axis)
private

Sets new axis of the hinge joint. ent1 refers to one in PhysicsJoint.CreateHinge.

Parameters
axisNew joint axis in reference frame of ent1

◆ SetAxis() [2/2]

proto external void SetAxis ( vector  axis)
private

Sets new axis of the hinge joint. ent1 refers to one in PhysicsJoint.CreateHinge.

Parameters
axisNew joint axis in reference frame of ent1

◆ SetLimits() [1/2]

proto external void SetLimits ( float  low,
float  high,
float  softness,
float  biasFactor,
float  relaxationFactor 
)
private

Sets various joint parameters

Parameters
lowLow limit of the joint
highHigh limit of the joint
softnessSoftness of the joint. See details
biasFactorBias factor of the joint. See details
relaxationFactorRelaxation factor of the joint. See details

◆ SetLimits() [2/2]

proto external void SetLimits ( float  low,
float  high,
float  softness,
float  biasFactor,
float  relaxationFactor 
)
private

Sets various joint parameters

Parameters
lowLow limit of the joint
highHigh limit of the joint
softnessSoftness of the joint. See details
biasFactorBias factor of the joint. See details
relaxationFactorRelaxation factor of the joint. See details

◆ SetMotor() [1/2]

proto external void SetMotor ( bool  enable,
float  targetVelocity,
float  maxImpulse 
)
private

Allows motor to move hinge at specific velocity

Parameters
enableTrue to enable motor
targetVelocityTarget angular velocity motor tries to maintain
maxImpulseMaximum impulse motor can overcome

◆ SetMotor() [2/2]

proto external void SetMotor ( bool  enable,
float  targetVelocity,
float  maxImpulse 
)
private

Allows motor to move hinge at specific velocity

Parameters
enableTrue to enable motor
targetVelocityTarget angular velocity motor tries to maintain
maxImpulseMaximum impulse motor can overcome

◆ SetMotorTargetAngle() [1/2]

proto external void SetMotorTargetAngle ( float  angle,
float  dt,
float  maxImpulse 
)
private

Allows motor to move hinge to specific angle. Must be called continuously.

Parameters
angleTarget angle motor tries to reach
dtTime fraction used in update
maxImpulseMaximum impulse motor can overcome

◆ SetMotorTargetAngle() [2/2]

proto external void SetMotorTargetAngle ( float  angle,
float  dt,
float  maxImpulse 
)
private

Allows motor to move hinge to specific angle. Must be called continuously.

Parameters
angleTarget angle motor tries to reach
dtTime fraction used in update
maxImpulseMaximum impulse motor can overcome

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