Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llRezObject question

Arcane Clawtooth
5 By 5
Join date: 7 Jan 2008
Posts: 201
03-17-2008 15:07
Hi,

I'm trying to rez a book on a couch when an avatar sits on a specific cushion, but I want it to rez in the same spot on the couch no matter what direction the couch is rotated. Any ideas?

I figured out how to rotate the object to appear correct with the couch, but the position part is really confusing me :)

Thanks,
Arcane
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-17-2008 17:13
for pos you'll use
llGetPos() + offset * llGetRot()
for rotation you'll use
rotationOffset * llGetRot()
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Arcane Clawtooth
5 By 5
Join date: 7 Jan 2008
Posts: 201
03-17-2008 19:51
From: Void Singer

llGetPos() + offset * llGetRot()

That's what I was missing, the "* llGetRot()" part, thanks!!! Can't wait to try this when I get home :)

Edit: Worked like a charm, thanks again!