Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is it to the Left or Right?

Tip Baker
Registered User
Join date: 12 Nov 2005
Posts: 100
12-30-2005 12:24
Hi all,


How do I tell whether a vector is to the left or the right of an object? I'm sure I'm missing a cunning trick here.

Thanks in advance.
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
12-30-2005 12:28
Well, it depends on what you mean by "left" and "right" - to the left and right of the forward axis, on the X and Y planes?
Tip Baker
Registered User
Join date: 12 Nov 2005
Posts: 100
12-30-2005 12:52
On the X-Y plane. The object will have its z axis pointing straight up and an arbatory rotation around the z axis. I just want to know whether the object should rotate clockwise or anticlockwise t turn towards the object. I assumed it would be simple, but I seemed to be getting bogged down in rotations.

I know I can make it turn with llLookAt and variations, but which way is it turning?