Arma 3 Scripting

Command in Math - Vectors

vectorWorldToModel

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

Description

Converts vector direction from world to model space.

Important

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

Syntax

object vectorWorldToModel 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:

_airplane vectorWorldToModel [0,-10,4];

See also

addForce · worldToModel · addTorque · vectorModelToWorld · vectorModelToWorldVisual · vectorWorldToModelVisual · matrixMultiply · matrixTranspose