Arma 3 Scripting

Command in Math - Vectors, Render Time Scope

vectorWorldToModelVisual

Also available as Markdown and JSON, or read the 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