Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PhysicsHingeJoint Class Reference
Inheritance diagram for PhysicsHingeJoint:
PhysicsJoint PhysicsJoint

Private Member Functions

proto external void SetAxis (vector axis)
 Sets new axis of the hinge joint.
proto external void SetAxis (vector axis)
 Sets new axis of the hinge joint.
proto external void SetLimits (float low, float high, float softness, float biasFactor, float relaxationFactor)
 Sets various joint parameters.
proto external void SetLimits (float low, float high, float softness, float biasFactor, float relaxationFactor)
 Sets various joint parameters.
proto external void SetMotor (bool enable, float targetVelocity, float maxImpulse)
 Allows motor to move hinge at specific velocity.
proto external void SetMotor (bool enable, float targetVelocity, float maxImpulse)
 Allows motor to move hinge at specific velocity.
proto external void SetMotorTargetAngle (float angle, float dt, float maxImpulse)
 Allows motor to move hinge to specific angle.
proto external void SetMotorTargetAngle (float angle, float dt, float maxImpulse)
 Allows motor to move hinge to specific angle.

Detailed Description

Definition at line 10 of file physicshingejoint.c.

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: