Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetPrimitiveParams - Glitched?

Nenilai Valentine
Registered User
Join date: 19 Feb 2006
Posts: 7
05-25-2007 11:28
Working on a script and having a hard time getting what I believe is the proper result, no flaring please just trying to figure this out...


llSetPrimitiveParams - This is the function in question


When you use llSetPrimitiveParams with PRIM_POSITION, it acts EXACTLY like llSetPos(), when attached to a child object it gives local variables, and when attached to a root prim it works with root variables.

BUT

When you use llSetPrimitiveParams with PRIM_ROTATION, it acts like llSetRot, working with the root object ONLY... is there any way to use llSetPrimitiveParams with PRIM_ROTATION, so that you effect the child prim relative to the root prim, the way llSetLocalRot works??



I hope this all makes sense to the guru's out there
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
05-25-2007 15:30
I think you want to use local_rot / llGetRootRotation(). The action of llSetRot and llSetPrimitiveParams with PRIM_ROTATION are identically bugged (see https://jira.secondlife.com/browse/SVC-93), so the above fix, while it works, shouldn't do...
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG