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