Arma 3 Scripting

setJointDriveOrientation

  • Local argument
  • Local effect
  • Arma 3 v2.22

Command · Markdown · JSON · original wiki page

Description

Requires that a swing+twist or SLERP "drive" has been configured in attachChild.

Sets the joints target orientation (relative to the joint's own orientation). The drive will then behave like a spring (springParameters are configured in the drive), trying to pull the child object to the desired orientation.

Syntax

Syntax 1

joint setJointDriveOrientation [angle, axis]

Parameters:

Returns: Nothing

Syntax 2

joint setJointDriveOrientation [vectorDir, vectorUp]

Parameters:

Returns: Nothing

Examples

Example 1

-no SQF code provided-

Example 2

-no SQF code provided-

Example 3

-no SQF code provided-

Example 4

-no SQF code provided-

Example 5

-no SQF code provided-

See also

attachChild · setJointDrivePosition · setJointDriveLinearVelocity · setJointDriveAngularVelocity