setJointDriveOrientation: Difference between revisions

From Bohemia Interactive Community
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.22 |branch= dev |arg= local |eff= local |serverExec= |gr1= Object Manipulation |descr= {{Wiki|WIP}} 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. |s1= joint...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
|serverExec=
|serverExec=


|gr1= Object Manipulation
|gr1= PhysX


|descr= {{Wiki|WIP}} Requires that a swing+twist or SLERP "drive" has been configured in [[attachChild]].
|descr= {{Wiki|WIP}} Requires that a swing+twist or SLERP "drive" has been configured in [[attachChild]].
Line 46: Line 46:
|x5= <sqf></sqf>
|x5= <sqf></sqf>


|seealso= [[seeAlso1]] [[seeAlso2]]
|seealso= [[attachChild]] [[setJointDrivePosition]] [[setJointDriveLinearVelocity]] [[setJointDriveAngularVelocity]]
}}
}}

Latest revision as of 12:53, 26 June 2025

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 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.
Groups:
PhysX

Syntax

Syntax:
joint setJointDriveOrientation [angle, axis]
Parameters:
joint : Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
angle: Number - The angle (in radians to rotate around axis), clockwise
axis: Array format Vector3D - The vector around which to rotate
Return Value:
Nothing

Alternative Syntax

Syntax:
joint setJointDriveOrientation [vectorDir, vectorUp]
Parameters:
joint : Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
vectorDir: Array format Vector3D - vectorDir
vectorUp: Array format Vector3D - vectorUp
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 setJointDriveLinearVelocity setJointDriveAngularVelocity

Notes

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