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