|
Sundi Metropolitan
Registered User
Join date: 14 Sep 2005
Posts: 24
|
07-19-2007 14:19
I am getting some odd results with this code. This code is in a linked prim and is not the main prim. Another script sends out a position and rotation in a linked message using the link number. The position and rotation are strung together with a * as the separator.
What happens is that the rotation changes but does not end up at the specified rotation value. Here is the code:
/php list ani; default { link_message(integer sender_number, integer number, string message, key id) { if (number == 2) { ani = llParseString2List(message, ["*"] , [ ]); llSetPrimitiveParams([ PRIM_ROTATION, (rotation)llList2String(ani, 1)] ); llSay(0,"Rotation: "+llList2String(ani, 1) + " "+ (string)llGetLocalRot());
} } } php/
And here is the result (from the Say):
Object: Rotation: <0.00000, -0.00000, -0.00000, 1.00000> <0.00000, 0.70711, 0.00000, 0.70711>
My question is why does the rotation not end up at the specified location?
Any thoughts?
|
|
Cryas Tokhes
Great Googley Moogley...
Join date: 8 Feb 2006
Posts: 124
|
07-19-2007 15:31
From: Sundi Metropolitan I am getting some odd results with this code. This code is in a linked prim and is not the main prim. Another script sends out a position and rotation in a linked message using the link number. The position and rotation are strung together with a * as the separator. What happens is that the rotation changes but does not end up at the specified rotation value. Here is the code: My question is why does the rotation not end up at the specified location? Any thoughts? I have noticed the same thing with param changes with LSL.. i have ran into the same things based on the angle of the parent/root prim. Look at the math and determine that it isnt basing this angle off of your root prim of the object.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
07-19-2007 18:06
Haven't checked the details, but on the surface this looks like  .
|
|
Sundi Metropolitan
Registered User
Join date: 14 Sep 2005
Posts: 24
|
07-20-2007 06:55
Thanks for the info. Yes, this looks like a case of the bug. I am able to go around it with llSetLocalRot(), however using llSetPrimativeParms() would be preferred. I might be able to use the work around discussed in the bug description for that though I will need to re-work some additional code for that.
|