Difference between revisions of "PosJump"

From Second Life Wiki
Jump to navigation Jump to search
Line 7: Line 7:
posJump(vector destpos)
posJump(vector destpos)
{
{
vector big_vector = <100000000000000000000000000000.0, 100000000000000000000000000000.0, 100000000000000000000000000000.0>;
vector big_vector = <18446744073709551616.0, 18446744073709551616.0, 18446744073709551616.0>;
llSetPrimitiveParams([PRIM_POSITION, big_vector, PRIM_POSITION, destpos]);
llSetPrimitiveParams([PRIM_POSITION, big_vector, PRIM_POSITION, destpos]);
}
}
</lsl>
</lsl>

Revision as of 20:06, 19 September 2008

Here's an interesting method for bypassing the 10m limitation in Non-Physical movement. It has its similarities to warpPos, but with minimal overhead.

<lsl> // An alternative to the warpPos trick without all the overhead. // Trickery discovered by Uchi Desmoulins.

posJump(vector destpos) { vector big_vector = <18446744073709551616.0, 18446744073709551616.0, 18446744073709551616.0>; llSetPrimitiveParams([PRIM_POSITION, big_vector, PRIM_POSITION, destpos]); } </lsl>