Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Movement on attached Multi-prim objects

DrFran Babcock
Registered User
Join date: 30 Apr 2006
Posts: 69
03-24-2008 07:28
I have looked through the forums for the answer for this to no avail. I am looking only for someone to point me in the correct direction, because I learn best by working these things out, and learning as I go. I will never be a great scripter.

So, I created an umbrella for a Tiny avatar that opens and closes using llSetPrimitveParams, and it worked beautifully on the ground. Of course, once I attached it to my arm/paw it went crazy.

What can I do to override this, so that my umbrella stays put, but will open and close on touch. I am not at home or I would paste the script in. I can do that later today, if that seems necessary.

Thanks so much.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-24-2008 11:17
From: DrFran Babcock
So, I created an umbrella for a Tiny avatar that opens and closes using llSetPrimitveParams, and it worked beautifully on the ground. Of course, once I attached it to my arm/paw it went crazy.

As I recall there is a defect that requires a nasty hack for this situation (attachments only). It is that a rotation is inverted by the system when it shouldn't be (or vice-versa). Maybe someone who recalls more will chime in. I might be recalling the exact case it affects incorrectly (rotation of attachments, or rotation of child prims of attachments...?). Until then, I'd probably suggest the old alpha changing transparency trick for the prims that move. :-(

From: DrFran Babcock
...I learn best by working these things out, and learning as I go. I will never be a great scripter.

I think those are contradictory statements. Don't sell yourself short. :-)
Snark Serpentine
Fractious User
Join date: 12 Aug 2003
Posts: 379
03-24-2008 11:31
llSetPrimitiveParams() doesn't work in attachments. Use llSetLocalRot() and llSetScale() (for instance) instead.
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
03-24-2008 11:33
Check the Wiki. There are instructions on how to handle this. Child prim rotations on attachments are broken, so you basically need to account for the root prim's rotation in all your calculations, or something like that. This used to be in the old Wiki, not sure if all of that made it into the new Wiki.
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
03-24-2008 12:01
This is, I believe, what everyone is describing:

llSetLocalRot() == llSetPrimitiveParams([PRIM_ROTATION, <rotation> / llGetRootRotation()]);
DrFran Babcock
Registered User
Join date: 30 Apr 2006
Posts: 69
03-24-2008 15:31
Thank you all. As usual, good advice an zero drama.