Difference between revisions of "LlGetLocalPos"
Jump to navigation
Jump to search
Anylyn Hax (talk | contribs) |
|||
Line 9: | Line 9: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples=<pre> | ||
NOTE: There is no such think like llSetLocalPos() | |||
You will have to do something like: | |||
SetLocalPosition(vector local_position) | |||
{ | |||
vector root_position = llGetPos(); | |||
vector absolute_position = root_position + local_position; | |||
llSetPos(absolute_position); | |||
return; | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 19:04, 30 July 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetLocalPos( );60 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a vector that is the position relative to the root (local).
Caveats
Examples
NOTE: There is no such think like llSetLocalPos() You will have to do something like: SetLocalPosition(vector local_position) { vector root_position = llGetPos(); vector absolute_position = root_position + local_position; llSetPos(absolute_position); return; }