0

What is formula and theorys used to determine wall direction, with only knowing the normal of the wall and the direction of the incoming object?

This answer has already stated a formula, but I don't know where it came from, and I am in need of understanding.

Gnemlock
  • 5,263
  • 5
  • 28
  • 58
rz_05
  • 15
  • 3

1 Answers1

3

If you already know the normal of the wall, then you already knows the direction of the wall. Perhaps you are unclear on what is the normal of something? See this wiki page: http://en.wikipedia.org/wiki/Normal_(geometry).

user60720
  • 81
  • 1
  • haha youre right, im not pretty clear on normal , usage cross product and bad math haha, iknow its from perpendicular from wall ( from ai book) and some they hardcoded on on data, so i need to know theory that made em ( still studying vector math), currently i use raycast to return normal of an object, that's way i want to know direction of wall, but really want understand how it works, anyway thanks for reply :) – rz_05 Feb 17 '15 at 12:34