{"name":"setJointDriveOrientation","operator":null,"title":"setJointDriveOrientation","type":"command","url":"https://community.bistudio.com/wiki/setJointDriveOrientation","revid":379088,"updated":"2026-09-27T09:40:35Z","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 swing+twist or SLERP \"drive\" has been configured in attachChild.\nSets the joints target orientation (relative to the joint's own orientation).\nThe drive will then behave like a spring (springParameters are configured in the drive), trying to pull the child object to the desired orientation.","syntaxes":[{"syntax":"joint setJointDriveOrientation [angle, axis]","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":"angle","type":"Number","optional":false,"default":null,"description":"The angle (in radians to rotate around axis), clockwise","types":["Number"],"since":null,"text":"angle: Number - The angle (in radians to rotate around axis), clockwise"},{"name":"axis","type":"Vector3D","optional":false,"default":null,"description":"The vector around which to rotate","types":["Vector3D"],"since":null,"text":"axis: Vector3D - The vector around which to rotate"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"joint","types":["Object","NetObject"]},"right":{"text":"[angle, axis]","types":["Array"]}},{"syntax":"joint setJointDriveOrientation [vectorDir, vectorUp]","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":"vectorDir","type":"Vector3D","optional":false,"default":null,"description":"vectorDir","types":["Vector3D"],"since":null,"text":"vectorDir: Vector3D - vectorDir"},{"name":"vectorUp","type":"Vector3D","optional":false,"default":null,"description":"vectorUp","types":["Vector3D"],"since":null,"text":"vectorUp: Vector3D - vectorUp"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"joint","types":["Object","NetObject"]},"right":{"text":"[vectorDir, vectorUp]","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","setJointDrivePosition","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"]}