Difference between revisions of "SL Cert - Basic LSL Rotations"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
This is an initial take on a set of guidelines for scripting position and rotations. It still needs a lot of work and a good deal of thought. | This is an initial take on a set of guidelines for scripting position and rotations. It still needs a lot of work and a good deal of thought. | ||
== Basic Requirements == | |||
=== Basic definition of position === | |||
==== Absolute position ==== | |||
==== Relative position ==== | |||
=== Basic definition of a rotation === | |||
*** Euler | *** Euler | ||
*** Axis and angle | *** Axis and angle | ||
*** Quarternions | *** Quarternions | ||
=== Changing position and rotation via the edit window === | |||
== Intermediate Requirements == | |||
=== Reference Frames === | |||
*** Global | *** Global | ||
*** Local | *** Local | ||
=== Basic commands to get position information === | |||
*** llGetPos | *** llGetPos | ||
*** llGetLocalPos | *** llGetLocalPos | ||
*** llGetRootPosition | *** llGetRootPosition | ||
=== Basic commands to get rotation information === | |||
*** llGetRot | *** llGetRot | ||
*** llGetLocalRot | *** llGetLocalRot | ||
*** llGetRootRotation | *** llGetRootRotation | ||
===Basic commands for changing position === | |||
*** llSetPos | *** llSetPos | ||
*** llSetPrimitiveParams | *** llSetPrimitiveParams | ||
*** llSetPos within different reference frames. | *** llSetPos within different reference frames. | ||
=== Basic commands for changing rotation === | |||
*** llSetRot | *** llSetRot | ||
*** llSetLocalRot | *** llSetLocalRot | ||
Line 46: | Line 45: | ||
**** Difference between left and right multiplication | **** Difference between left and right multiplication | ||
== Advanced Requirements == | |||
=== Rotations and position === | |||
*** using llSetPrimitiveParams to move and rotate at the same time | *** using llSetPrimitiveParams to move and rotate at the same time | ||
*** Rotating and moving a prim to a specified orientation | *** Rotating and moving a prim to a specified orientation | ||
**** Absolute coordinates | **** Absolute coordinates | ||
**** Relative coordinates (in a link set) | **** Relative coordinates (in a link set) | ||
=== Smooth movements in absolute coordinates === | |||
**** Rotate and movement around the edge of a prim | **** Rotate and movement around the edge of a prim | ||
**** Rotate and move around a fixed point | **** Rotate and move around a fixed point | ||
**** Rotate and move around a predefined axis | **** Rotate and move around a predefined axis | ||
=== Smooth movements in local coordinates === | |||
**** Rotate and movement around the edge of a prim | **** Rotate and movement around the edge of a prim | ||
**** Rotate and move around a fixed point | **** Rotate and move around a fixed point | ||
**** Rotate and move around a predefined axis | **** Rotate and move around a predefined axis | ||
=== Transitions ==== | |||
**** Smooth movements between two different orientations | **** Smooth movements between two different orientations |
Revision as of 14:38, 21 February 2009
This is an initial take on a set of guidelines for scripting position and rotations. It still needs a lot of work and a good deal of thought.
Basic Requirements
Basic definition of position
Absolute position
Relative position
Basic definition of a rotation
- Euler
- Axis and angle
- Quarternions
Changing position and rotation via the edit window
Intermediate Requirements
Reference Frames
- Global
- Local
Basic commands to get position information
- llGetPos
- llGetLocalPos
- llGetRootPosition
Basic commands to get rotation information
- llGetRot
- llGetLocalRot
- llGetRootRotation
Basic commands for changing position
- llSetPos
- llSetPrimitiveParams
- llSetPos within different reference frames.
Basic commands for changing rotation
- llSetRot
- llSetLocalRot
- llSetPrimitiveParams
- How the commands work in different reference frames.
- Rotations
- Multiplication and division of rotations
- Difference between left and right multiplication
Advanced Requirements
Rotations and position
- using llSetPrimitiveParams to move and rotate at the same time
- Rotating and moving a prim to a specified orientation
- Absolute coordinates
- Relative coordinates (in a link set)
Smooth movements in absolute coordinates
- Rotate and movement around the edge of a prim
- Rotate and move around a fixed point
- Rotate and move around a predefined axis
Smooth movements in local coordinates
- Rotate and movement around the edge of a prim
- Rotate and move around a fixed point
- Rotate and move around a predefined axis
Transitions =
- Smooth movements between two different orientations