Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to detect the way an avatar is looking?

a lost user
Join date: ?
Posts: ?
08-30-2005 13:06
I mean, I want to know exactly in which way an avatar is looking at. For example, if it is placed at <60.0,60.0,60.0> and looking to the south, how can I get the orientarion or direction or whatever the llCommand that gives me the point I'm looking at.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
08-30-2005 13:36
Any llDetectedRotation function will return the rotation of the object sensed... If it is an avatar, it will either return the pelvis rotation, or it will return the head rotation (if they're in mouselook).

Using some math, you can do other things with it... I think Jeffrey Gomez made something that did this sort of thing.
a lost user
Join date: ?
Posts: ?
Thanks a lot
08-30-2005 15:00
I will work with it and post my experiences later. Thx again