|
Zaplok Riggles
Registered User
Join date: 25 Feb 2008
Posts: 119
|
03-14-2008 18:51
I created a number of objects and positioned them so they looked good. I then placed them into a holder object which uses llRezObject on each. When the items rez, most of them come out with the same rotation the object had when I created it stand alone. But, some rez with a different rotation and come out sideways or upside down. Ideas?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-14-2008 22:14
The object rezzes with whatever rotation you have the llRezObject() or llRezAtRoot() function. It might be many of your objects have the same rotation (like a zero rotation), and you are using a constant rotation when rezzing. The easiest ways to have them rez with the rotation they had before packing them up are: 1.) contruct all your objects using a root prim with, say, a zero rotation (extra invisible prim for root if needed), and/or 2.) put a script in each rezzed object that remembers a rotation and sets the object to that rotation when it is rezzed (e.g. llGetRot(), llSetRot()).
|
|
Zaplok Riggles
Registered User
Join date: 25 Feb 2008
Posts: 119
|
03-15-2008 12:26
I got this working by setting a rotation for each rezzed item I was using. What took me forever to debug is why the new rotation I was setting wasn't showing. It turns out, I was using targetomega to make my objects slowly spin. With target omega activated, changes to the objects rotation don't show. I needed to set the rotation and THEN turn on target omega, and turn omega off and on if I need to switch rotations. Just posting in case someone else runs across this issue.
|