setJointDrivePosition

From Bohemia Interactive Community
Revision as of 11:32, 26 June 2025 by Dedmen (talk | contribs) (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 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. |s1= joint [[{{subst:PAGENAMEE}}]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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.
Groups:
Object Manipulation

Syntax

Syntax:
joint setJointDrivePosition pos
Parameters:
joint : Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
pos: Array - target position in XYZ relative to the joint
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 setJointDriveOrientation 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