Difference between revisions of "Category:LSL Rotation"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 4: Line 4:


Functions in this category fall into two categories: Rotations in the purely mathematical sense and Rotations as in prim / object rotation.
Functions in this category fall into two categories: Rotations in the purely mathematical sense and Rotations as in prim / object rotation.
Quick Tip! To reverse a rotation (say something is facing north and you want it to face south, e.g. 180 degrees difference), add pi to the z value of the euler vector:
llEuler2Rot(<0.0, 0.0, PI>) * llGetRot()

Revision as of 11:05, 20 July 2008

The rotation page is where you can find detailed information about how to work with rotations.

Functions in this category fall into two categories: Rotations in the purely mathematical sense and Rotations as in prim / object rotation.

Quick Tip! To reverse a rotation (say something is facing north and you want it to face south, e.g. 180 degrees difference), add pi to the z value of the euler vector:

llEuler2Rot(<0.0, 0.0, PI>) * llGetRot()