{"name":"vectorWorldToModelVisual","operator":null,"title":"vectorWorldToModelVisual","type":"command","url":"https://community.bistudio.com/wiki/vectorWorldToModelVisual","revid":377893,"updated":"2026-01-05T17:39:06Z","groups":["Math - Vectors","Render Time Scope"],"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 in render time scope.\n\n> [!IMPORTANT]\n> For scaled objects, the resulting vector's magnitude will be divided by the object scale.","syntaxes":[{"syntax":"object vectorWorldToModelVisual 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\nprivate _vector = _airplane vectorWorldToModelVisual [0,-10,4];\n```","code":["private _vector = _airplane vectorWorldToModelVisual [0,-10,4];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addForce","worldToModelVisual","addTorque","vectorModelToWorld","vectorModelToWorldVisual","vectorWorldToModel"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Math - Vectors","Command Group: Render Time Scope","Introduced with Arma 3 version 1.72","Scripting Commands"]}