{"name":"setJointDriveOrientation","title":"setJointDriveOrientation","type":"command","url":"https://community.bistudio.com/wiki/setJointDriveOrientation","revid":379088,"updated":"2026-09-27T09:40:35Z","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 swing+twist or SLERP \"drive\" has been configured in attachChild.\n\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]","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":"angle","type":"Number","description":"The angle (in radians to rotate around axis), clockwise","type_expr":"Number"},{"name":"axis","type":"Vector3D","description":"The vector around which to rotate","type_expr":"Vector3D"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"joint"},"right":{"text":"[angle, axis]"}},{"syntax":"joint setJointDriveOrientation [vectorDir, vectorUp]","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":"vectorDir","type":"Vector3D","description":"vectorDir","type_expr":"Vector3D"},{"name":"vectorUp","type":"Vector3D","description":"vectorUp","type_expr":"Vector3D"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"joint"},"right":{"text":"[vectorDir, vectorUp]"}}],"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","setJointDrivePosition","setJointDriveLinearVelocity","setJointDriveAngularVelocity"],"categories_extra":["WIP"]}