{"name":"vectorModelToWorld","title":"vectorModelToWorld","type":"command","url":"https://community.bistudio.com/wiki/vectorModelToWorld","revid":378448,"updated":"2026-04-16T17:00:30Z","groups":["Math - Vectors"],"status":"ok","games":{"arma3":"1.72"},"since":"arma3 1.72","arma3_since":"1.72","description":"Converts vector direction from model to world space.\n\n> [!IMPORTANT]\n> For scaled objects, the resulting vector's magnitude will also be multiplied by the object scale.","syntaxes":[{"syntax":"object vectorModelToWorld modelDir","params":[{"name":"object","type":"Object","type_expr":"Object"},{"name":"modelDir","type":"Vector3D","description":"vector direction in model space in format [x,y,z]","type_expr":"Vector3D"}],"returns":{"type":"Vector3D","type_expr":"Vector3D","description":"vector direction in world space"},"form":"binary","left":{"text":"object"},"right":{"text":"modelDir"}}],"examples":[{"text":"Convert model space vector [0,-10,4] to world space; vector gets rotated according to _airplane:\n\n```sqf\n_airplane vectorModelToWorld [0,-10,4];\n```","code":["_airplane vectorModelToWorld [0,-10,4];"]}],"see_also":["vectorDir","modelToWorld","addForce","addTorque","vectorModelToWorldVisual","vectorWorldToModel","vectorWorldToModelVisual","matrixMultiply","matrixTranspose"]}