{"name":"setJointDrivePosition","operator":null,"title":"setJointDrivePosition","type":"command","url":"https://community.bistudio.com/wiki/setJointDrivePosition","revid":378904,"updated":"2026-08-11T14:56:34Z","groups":["PhysX"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.22"}],"since":{"game":"arma3","name":"Arma 3","version":"2.22"},"arma3_since":"2.22","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Requires that a linear \"drive\" has been configured in attachChild.\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","since":null,"effect":null,"exec":null,"params":[{"name":"joint","type":"Object or NetObject","optional":false,"default":null,"description":"The parent vehicle that has a joint to a child, or the joint itself to be manipulated","types":["Object","NetObject"],"since":null,"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","optional":false,"default":null,"description":"target position in XYZ relative to the joint","types":["Array"],"since":null,"text":"pos: Array - target position in XYZ relative to the joint"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"joint","types":["Object","NetObject"]},"right":{"text":"pos","types":["Array"]}}],"examples":[{"text":"```sqf\n\n```","code":[]},{"text":"```sqf\n\n```","code":[]},{"text":"```sqf\n\n```","code":[]},{"text":"```sqf\n\n```","code":[]},{"text":"```sqf\n\n```","code":[]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["attachChild","setJointDriveOrientation","setJointDriveLinearVelocity","setJointDriveAngularVelocity"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: PhysX","Introduced with Arma 3 version 2.22","Scripting Commands","Scripting Commands: Local Effect","WIP"]}