Difference between revisions of "LlRot2Axis"

From Second Life Wiki
Jump to navigation Jump to search
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples=<lsl>default
|examples
{
    state_entry()
    {
        rotation rTest=llAxisAngle2Rot(<0.0, 0.0, 1.0>, (90.0*DEG_TO_RAD));
        vector eTest=llRot2Euler(rTest)*RAD_TO_DEG;
 
        llOwnerSay((string) eTest);
 
        //Says <0.0, 0.0, 90.0> since it is rotating 90 degrees on the Z axis caused by the 1.0 placed in the Z vector spot.
    }
 
}</lsl>
 
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llRot2Angle]]}}
|also_functions={{LSL DefineRow||[[llRot2Angle]]}}

Revision as of 17:56, 10 April 2008