Arma 3 Scripting

Command in PhysX

setJointDrivePosition

Also available as Markdown and JSON, or read the original wiki page.

Description

Requires that a linear "drive" has been configured in attachChild. Sets the joints target position (relative to the joint's own position). The drive will then behave like a spring (springParameters are configured in the drive), trying to pull the child object to the desired position.

Syntax

joint setJointDrivePosition pos

Parameters:

Returns: Nothing

Examples

Example 1


Example 2


Example 3


Example 4


Example 5


See also

attachChild · setJointDriveOrientation · setJointDriveLinearVelocity · setJointDriveAngularVelocity