23 March, 2008

Jumper - teleport to All artworks

I set "Jumper" - teleporter to All artworks in Archidemo.



This is simple equipment that uses the teleport function of "offset". This is one of the expression types of "Contents Oriented Space" that I described in the Abstract. All point = contents will be connected with the jumper in the future...like hyperlink. What meaning do walking and the flight - imitation of physical experience - have at that time?



LSL is refer to this website (Japanese Only)
vector target=<110.31,34.50,137.25>;
vector offset;

default
{
on_rez(integer params)
{
offset = (target- llGetPos()) *
(ZERO_ROTATION / llGetRot());
llSitTarget(offset, ZERO_ROTATION);
}

state_entry()
{
offset = (target- llGetPos()) *
(ZERO_ROTATION / llGetRot());
llSetSitText("Teleport");
llSitTarget(offset, ZERO_ROTATION);
}

changed(integer change)
{
if (change & CHANGED_LINK)
{
llSleep(0.5);
if (llAvatarOnSitTarget() != NULL_KEY) {
llUnSit(llAvatarOnSitTarget());
}
}
}
}

No comments: