SIT_FLAG_MAINTAIN_RELATIVE
WolfGang Senizen
Ability for a seated avatar to stay relative to the prim they are sitting on when it moves / rotates.
E.g
default {
state_entry() {
llLinkSitTarget(2,<0,0,1>,ZERO_ROTATION);
llSetLinkSitFlag(2, SIT_FLAG_MAINTAIN_RELATIVE);
llSetTimerEvent(0.1);
}
timer() {
llSetLinkPrimitiveParamsFast(
2,
[
PRIM_POS_LOCAL,<0,1.5 + llCos(llGetTime()),0>,
PRIM_ROT_LOCAL, llEuler2Rot(<0,0,llGetTime()>)
]
);
}
}
An avatar sitting on prim 2 should move back and forth and rotate along with the prim.
Log In