worldToModel
- Arma 3 v0.50
- First in Armed Assault v1.00
Command · Markdown · JSON · original wiki page
Description
Converts position from world space to object model space.
Important
For scaled objects, the relative position will be divided by the object scale.
Syntax
model worldToModel position
Parameters:
model: Objectposition: PositionAGL or Position2D - world position
Returns: PositionRelative - position relative to model
Examples
Example 1
_relPos = myObject worldToModel [0,0,0];
Example 2
_relPos = player worldToModel ASLToAGL getPosASL car;
Example 3
_relPos = car worldToModel [12000,5000];