Don't click here unless you want to be banned.

LSL Wiki : llRot2Fwd

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl427.us.archive.org
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.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Rotation
Comments [Hide comments/form]
How does this differ from llRot2Axis?
-- RichardPinkerton (2005-07-09 07:08:05)
llRot2Axis returns the axis the object is rotated on (so a cube was rotated 90 degrees on its z-axis, llRot2Axis would return <0,0,1>).
-- DolusNaumova (2005-10-23 09:30:40)
Attach a comment to this page: