{"name":"worldToModel","title":"worldToModel","type":"command","url":"https://community.bistudio.com/wiki/worldToModel","revid":377406,"updated":"2026-01-02T06:45:05Z","groups":["Positions"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Converts position from world space to object model space.\n\n> [!IMPORTANT]\n> For scaled objects, the relative position will be divided by the object scale.","syntaxes":[{"syntax":"model worldToModel position","params":[{"name":"model","type":"Object","type_expr":"Object"},{"name":"position","type":"PositionAGL or Position2D","description":"world position","type_expr":"PositionAGL | Position2D"}],"returns":{"type":"PositionRelative","type_expr":"PositionRelative","description":"position relative to model"},"form":"binary","left":{"text":"model"},"right":{"text":"position"}}],"examples":[{"code":["_relPos = myObject worldToModel [0,0,0];"]},{"code":["_relPos = player worldToModel ASLToAGL getPosASL car;"]},{"code":["_relPos = car worldToModel [12000,5000];"]}],"see_also":["worldToModelVisual","vectorWorldToModel","modelToWorld"]}