{"name":"vectorWorldToModel","title":"vectorWorldToModel","type":"command","url":"https://community.bistudio.com/wiki/vectorWorldToModel","revid":377866,"updated":"2026-01-04T11:33:08Z","groups":["Math - Vectors"],"status":"ok","games":{"arma3":"1.72"},"since":"arma3 1.72","arma3_since":"1.72","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","params":[{"name":"object","type":"Object","type_expr":"Object"},{"name":"worldDir","type":"Vector3D","description":"vector direction in world space in format [x,y,z]","type_expr":"Vector3D"}],"returns":{"type":"Vector3D","type_expr":"Vector3D","description":"vector direction in model space in format [x,y,z]"},"form":"binary","left":{"text":"object"},"right":{"text":"worldDir"}}],"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];"]}],"see_also":["addForce","worldToModel","addTorque","vectorModelToWorld","vectorModelToWorldVisual","vectorWorldToModelVisual","matrixMultiply","matrixTranspose"]}