Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.10

Description

Description:

Converts the direction vector from the object model space to world space.

If the current direction vector is [0,1,0], and the unit points south, then the command returns [0,-1,0], as it rotates the vector from model space to world space.

Syntax

Syntax:object modelToWorldVector dir
Parameters:
  • object: Object - Object to check.
  • dir: Vector3D - Original direction vector.
Return Value:Vector3D - Rotated direction vector.

Examples

Examples:
_wv = player modelToWorldVector [0,1,0]

Additional Information

See also: worldToModelVector
Multiplayer: 
Problems: 

Notes