Arma 3 Scripting

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:

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];

See also

worldToModelVisual · vectorWorldToModel · modelToWorld