Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetLinkPrimitiveParams - rotation

Simnelia Petrichor
Registered User
Join date: 10 Feb 2006
Posts: 35
01-25-2009 01:32
Ok, so I used llSetLinkPrimitiveParams to adjust the position of the avatar sitting on an object, and that was great. The position was local so whichever way the object was facing, the avatar's position was still correct.

Now I need to adjust the avatar's rotation at the same time and this seems to be causing trouble. Once the rotation is set to non-zero, it throws out the position. Is it rotating around the root prim or something fiendish like that? Any advice?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-25-2009 01:59
Hmm. I don't THINK the rotation should mess with the position unless you are calculating the avatar's offset based on its own rotation or something. However, I believe the bug that affects llSetRot() on child prims does affect the rotation of avatars as well, so that might be causing problems with the orientation.....
Simnelia Petrichor
Registered User
Join date: 10 Feb 2006
Posts: 35
01-25-2009 03:41
Seems to be working now! All I changed was to set the rotation as new_rot / llGetRot(). The positioning seems fine today so either I was being an idiot yesterday or SL was being flaky. Personally I prefer the 2nd option :)