setJointDriveAngularVelocity: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
No edit summary
 
Line 22: Line 22:
|p1= joint : [[Object]] or [[NetObject]] - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
|p1= joint : [[Object]] or [[NetObject]] - The parent vehicle that has a joint to a child, or the joint itself to be manipulated


|p2= velocity: [[Array]] format [[Vector3D]] - relative velocity vector
|p2= velocity: [[Vector3D]] - relative velocity vector


|p3= <!-- ↓ to delete if unused ↓ -->
|p3= <!-- ↓ to delete if unused ↓ -->

Latest revision as of 07:33, 2 January 2026

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.22.

Description

Description:
🏗
This article is a work in progress!
Requires that a swing+twist or SLERP "drive" has been configured in attachChild.

Sets the joints target angular velocity (orientation relative to the joint's own orientation).

The drive will then behave like a spring (springParameters are configured in the drive), trying to accelerate the child object to the desired velocity.
Groups:
PhysX

Syntax

Syntax:
joint setJointDriveAngularVelocity velocity
Parameters:
joint : Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
velocity: Vector3D - relative velocity vector
Return Value:
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-

Additional Information

See also:
attachChild setJointDrivePosition setJointDriveOrientation setJointDriveLinearVelocity

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note