Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is it possible to forcibly rotate an avatar?

TwoPercent Milk
Homogenized
Join date: 12 Oct 2004
Posts: 9
03-25-2005 19:47
I am attempting to make an attachment that would rotate the avatar to be facing a specified position (at least on the z axis of a rotation). I've looked through the functions, but I cannot find anything that would be able to do this. Is there something I'm missing, or would I have to use an object for the avatar to sit on or ride?
Francis Chang
Registered User
Join date: 23 Mar 2005
Posts: 2
03-25-2005 20:05
The answer is yes, but mostly no.

I dealt with this when making a the hug attachment that was popularized after 1.4 came out.

The language is expressive enough (llLookAt, llRotLookAt, llPointAt), but the LSL API's to dealing with rotations are completely broken when operating as an attachment. Maybe if you bug report them too, it'll increase the priority in the bugfix queue.
Pete Fats
Geek
Join date: 18 Apr 2003
Posts: 648
03-26-2005 00:37
heh...Francis Chang.
_____________________
Siro Mfume
XD
Join date: 5 Aug 2004
Posts: 747
03-26-2005 04:52
offhand, I know you can apply a rotational impulse to an avatar to spin them on an axis. However I'm not versed well enough with it to point an avatar at a specific direction or to account for gravity related surface friction.
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
03-26-2005 12:26
llPushObject() has a rotational spin setting (measured in a euler rotation). :)

It would be mildly difficult, but it is possible.

Wait: This is for an attachment, if so - you can just use the normal set of tools for dealing with a physical object and rotating it's root.

-Adam
_____________________
Co-Founder / Lead Developer
GigasSecondServer