determining left or right?

Started by
1 comment, last by Syrillix 20 years, 10 months ago
ok, given a starting direction and a direction to another position. how would i go about figuring out whether i turn left or right? i thought dot-product originally but doesnt tell me which side just whether its behind me or not.. anyone got any ideas?
Get busy livin' or get busy dyin'... - Shawshank RedemptionIf a man is talking in the forest, and no woman is around to hear him, is he still wrong? - UnknownFulcrum
Advertisement
Dot the vector in question with either the normal of the plane formed by the up vector and the original vector or the cross product of the up vector and the original vector. The sign of the result will tell you.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
i cant believe i didnt think of that *slaps forehead*...
im such an idiot

thanks!!
Get busy livin' or get busy dyin'... - Shawshank RedemptionIf a man is talking in the forest, and no woman is around to hear him, is he still wrong? - UnknownFulcrum

This topic is closed to new replies.

Advertisement