iv been trying all day to get a object to rez at a rotation relitive to the base prim that it lives in
i have made a teleporter hub ,when you walk into it a transporter rezzes ready for use ,that all works fine ,but the transporter is out of possition ,if the hub is rotated when rezzed out of my inventory
god this is hard to explain let alone do
, p.s the hub is a multi primed and linked , and the rezzed object is two linked prims
been using this code
CODE
//Rez an object on touch
string object = "Object";//Object in inventory
integer start_param = 10;
rotation rot;
default
{
state_entry()
{
rot = llEuler2Rot(< 0, 90, 90> * DEG_TO_RAD);
}
touch_start(integer a)
{
vector vec = llGetPos() + < 0.0, 0.0, 1.0>; // 1 meter above this
vector speed = llGetVel();
llRezAtRoot(object, vec, speed, rot, start_param);
}
}