|
Burnman Bedlam
Business Person
Join date: 28 Jan 2006
Posts: 1,080
|
03-20-2006 11:02
Greetings all, I am looking to have 1 object rez another object directly above it... not a problem. I am also looking to have the rezzed object face the same direction as the original prim. As it stands now, if object1 is rotated from it's original position, when it rezzes object2, they are offset from each other. I need this to be a physical rotation, so the omega thingy isn't going to work for me here. Basically, I need object2 to detect the rotation along a single axis of Object1... and then turn to match. I am relatively new to LSL, and the whole rotation thing makes my head hurt. If someone could offer some assistance... I would be rather greatful 
_____________________
Burnman Bedlam http://theburnman.com Not happy about Linden Labs purchase of XStreet (formerly SLX) and OnRez. Will this mean LL will ban resident run online shoping outlets in favor of their own?
|
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
03-20-2006 11:27
Actually, llRezObject will handle this for you. The fourth parameter is the rezzed object's rotation, global: llRezObject("object", llGetPos() + <0.0,0.0,5.0>, ZERO_VECTOR, llGetRot(), 0);
|
|
Burnman Bedlam
Business Person
Join date: 28 Jan 2006
Posts: 1,080
|
03-20-2006 11:31
From: Jillian Callahan Actually, llRezObject will handle this for you. The fourth vector is the rezzed object's rotation, global: llRezObject("object", llGetPos() + <0.0,0.0,5.0>, ZERO_VECTOR, llGetRot(), 0); omg... that was so obvious... it hurts me. lol Thank you for the help... 
_____________________
Burnman Bedlam http://theburnman.com Not happy about Linden Labs purchase of XStreet (formerly SLX) and OnRez. Will this mean LL will ban resident run online shoping outlets in favor of their own?
|