Arma 3 Scripting

Command in Positions, Render Time Scope

worldToModelVisual

Also available as Markdown and JSON, or read the original wiki page.

Description

Converts position from world space to object model space in render time scope.

Important

For scaled objects, the relative position will be divided by the object scale.

Syntax

object worldToModelVisual worldPosition

Parameters:

Returns: PositionRelative

Examples

Example 1

_relPos = myObject worldToModelVisual [0,0,0];

Example 2

_relPos = player worldToModelVisual position car;

Example 3

_relPos = car worldToModelVisual [12000, 5000];

Example 4

_relPos = unit worldToModelVisual position tank;

See also

worldToModel · vectorWorldToModelVisual · modelToWorldVisual · modelToWorld