Difference between revisions of "Category:LSL Rotation"

From Second Life Wiki
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Multi-lang}}
+
{{LSL Header|ml=*}}{{LSLC|}}{{LSLC|Types}}
{{LSL Header}}{{LSLC|}}{{LSLC|Types}}
+
 
The [[rotation]] page is where you can find detailed information about how to work with rotations.
 
The [[rotation]] page is where you can find detailed information about how to work with rotations.
  
Line 7: Line 6:
 
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:
 
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()
+
<source lang="lsl2">llEuler2Rot(<0.0, 0.0, PI>) * llGetRot()</source>

Latest revision as of 13:23, 25 January 2015

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()