These forums are CLOSED. Please visit the new forums HERE
Simple sit script to face the avatar |
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
08-19-2005 07:47
I'd like a simple script to face an avatar in a particular direction when they sit down. Not sure what function I should be looking at.
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
08-19-2005 08:19
llSitTarget() is the relevant function.
Easy to use, that's a whole new ball game. If you search this forum Strife's produced a robust sit script, but most people end up tweaking and playing with sit targets to make them work nicely. As a word of advice if you do set your rotations up using an Euler (X, Y, Z) rotation and use llEuler2Rot() to convert it into the rotation. Some mathematical genii may be able to work out quaternions directly, for us mortals let the software do the hard work. |
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
08-19-2005 09:21
Thanks! Figured it all out.
|