Don't click here unless you want to be banned.

LSL Wiki : llRotTarget

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawling22.us.archive.org
integer llRotTarget(rotation rot, float error)

Sets object rotation within error (in radians) of rotation as a rotational target and returns an integer handle for the target, which can then be used in llRotTargetRemove, and is supplied to the at_rot_target event.

Whenever the object rotation comes within error range of the rotation rot, the at_rot_target event is raised; when it doesn't, not_at_rot_target is raised instead.


Functions | Rotation | Target
Comments [Hide comments/form]
Does this function actually rotate the object or just set up the target? If it does, where are the strength and damping parameters that llRotLookAt has?
-- RichardPinkerton (2005-07-09 08:11:52)
It sets up a rotational target, just like llTarget. No movement actually occurs.
-- KeknehvPsaltery (2005-07-09 10:47:04)
This seems to have problems with detecting being near "both sides" of certain rotations. <0,0,1,0> and <0,0,-1,0> give the same rotation (actual "physical" rotation, as opposed to the rotation type), but llRotTarget seems to treat them differently, and it seems you need both to detect all rotations near this rotation?
-- SeifertSurface (2005-07-31 01:52:58)
Attach a comment to this page: