{"name":"vectorWorldToModel","operator":null,"title":"vectorWorldToModel","type":"command","url":"https://community.bistudio.com/wiki/vectorWorldToModel","revid":377866,"updated":"2026-01-04T11:33:08Z","groups":["Math - Vectors"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.72"}],"since":{"game":"arma3","name":"Arma 3","version":"1.72"},"arma3_since":"1.72","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Converts vector direction from world to model space.\n\n> [!IMPORTANT]\n> For scaled objects, the resulting vector's magnitude will be divided by the object scale.","syntaxes":[{"syntax":"object vectorWorldToModel worldDir","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"},{"name":"worldDir","type":"Vector3D","optional":false,"default":null,"description":"vector direction in world space in format [x,y,z]","types":["Vector3D"],"since":null,"text":"worldDir: Vector3D - vector direction in world space in format [x,y,z]"}],"returns":{"type":"Vector3D","types":["Vector3D"],"description":"vector direction in model space in format [x,y,z]","text":"Vector3D - vector direction in model space in format [x,y,z]"},"form":"binary","operator":null,"left":{"text":"object","types":["Object"]},"right":{"text":"worldDir","types":["Vector3D"]}}],"examples":[{"text":"Convert world space vector [0,-10,4] to model space of object _airplane:\n\n```sqf\n_airplane vectorWorldToModel [0,-10,4];\n```","code":["_airplane vectorWorldToModel [0,-10,4];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addForce","worldToModel","addTorque","vectorModelToWorld","vectorModelToWorldVisual","vectorWorldToModelVisual","matrixMultiply","matrixTranspose"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Math - Vectors","Introduced with Arma 3 version 1.72","Scripting Commands"]}