LSL Wiki Mirror 10-5-2006: llRot2Fwd

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
vector llRot2Fwd(rotation rot);

Returns a unit vector (magnitude of 1) representing which direction is forward after rot is applied (the forward/x/red axis represented by rot.)

Imagine a cube with the zero rotation. The cube's x-axis (forward/red) is pointing along the world x-axis. After some arbitrary rotation, the cube's x-axis is pointing off in some arbitrary direction (which can be seen by turning on "local axis" in the edit window). llRot2Fwd(llGetRot()) will return this arbitrary direction (as a vector).

Compare with llRot2Left and llRot2Up.


Functions | Rotation
There are 2 comments on this page. [Display comments/form]