{"name":"setJointDrivePosition","title":"setJointDrivePosition","type":"command","url":"https://community.bistudio.com/wiki/setJointDrivePosition","revid":378904,"updated":"2026-08-11T14:56:34Z","groups":["PhysX"],"status":"ok","games":{"arma3":"2.22"},"since":"arma3 2.22","arma3_since":"2.22","locality":{"argument":"local","effect":"local"},"description":"Requires that a linear \"drive\" has been configured in attachChild.\n\nSets the joints target position (relative to the joint's own position).\nThe drive will then behave like a spring (springParameters are configured in the drive), trying to pull the child object to the desired position.","syntaxes":[{"syntax":"joint setJointDrivePosition pos","params":[{"name":"joint","type":"Object or NetObject","description":"The parent vehicle that has a joint to a child, or the joint itself to be manipulated","type_expr":"Object | NetObject","text":"joint : Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated"},{"name":"pos","type":"Array","description":"target position in XYZ relative to the joint","type_expr":"Array"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"joint"},"right":{"text":"pos"}}],"examples":[{"text":"-no SQF code provided-"},{"text":"-no SQF code provided-"},{"text":"-no SQF code provided-"},{"text":"-no SQF code provided-"},{"text":"-no SQF code provided-"}],"see_also":["attachChild","setJointDriveOrientation","setJointDriveLinearVelocity","setJointDriveAngularVelocity"],"categories_extra":["WIP"]}