Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem with llSetPrimitiveParams

Stak Skolnick
Registered User
Join date: 26 Feb 2006
Posts: 8
07-13-2007 15:38
According to the description of llSetPrimitiveParams on lslwiki.net, if it's applied to a child prim in a linked set, PRIM_ROTATION sets the local rotation and position relative to the root prim.

However, I find that llSetPrimitiveParams([PRIM_ROTATION,ZERO_ROTATION]) sets the local rotation equal to the global rotation of the root prim (i.e. the child's global rotation becomes the square of the global rotation of the root). In general, if I want to set the local rotation to r, I have to write this instead:

llSetPrimitiveParams([PRIM_ROTATION,r/llGetRootRotation()])

Surely it isn't meant to work this way?

If I use llSetLocalRot it works as I expect.

The reason I'm using llSetPrimitiveParams is that I want to set the position and rotation together, and separate calls to llSetLocalRot and llSetPos are animated separately.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
07-13-2007 16:08
Sounds like . If so, it's a long-standing critical bug.