Determining if something is on the right or left side of an object?
Posted
by
meds
on Game Development
See other posts from Game Development
or by meds
Published on 2012-11-17T13:35:07Z
Indexed on
2012/11/17
17:23 UTC
Read the original article
Hit count: 207
I have a character in a 3D world which is facing an arbitrary direction on a flat plane, the player can click on the left or right side of the character and based on which side is clicked on a different action happens.
How can I determine which side the click occured on? Obviously for straight on ahead (0,0,1) I can simply use the x coordinate of the click point to determine if it's the left or right hand side, but what about other cases?
© Game Development or respective owner