Arma 3 Scripting

vectorWorldToModelVisual

  • Arma 3 v1.72

Command · also in Render Time Scope · Markdown · JSON · original wiki page

Description

Converts vector direction from world to model space in render time scope.

Important

For scaled objects, the resulting vector's magnitude will be divided by the object scale.

Syntax

object vectorWorldToModelVisual worldDir

Parameters:

Returns: Vector3D - vector direction in model space in format [x,y,z]

Examples

Example 1

Convert world space vector [0,-10,4] to model space of object _airplane:

private _vector = _airplane vectorWorldToModelVisual [0,-10,4];

See also

addForce · worldToModelVisual · addTorque · vectorModelToWorld · vectorModelToWorldVisual · vectorWorldToModel