Your Sneaky Ninja game was a wild success. Now you're creating your next game...this time in 3D!
In this one, you play Mr. Vampire, a vampire who's trying to evade being exposed to too much sunlight before finding a shelter of darkness.
You've prototyped the game out, and are in the testing phase. The brighter the sunlight that shines on Mr. Vampire's body, the more life he loses.
Mr. Vampire currently has 12 life points left, and his body orientation at that point is described by the vectors <2, 5, 3> & <1, -4, 6>. A ray of sunlight, L, described by the vector <-10,-6,2> shines itself on the vampire at that body orientation point (blue cube).
Typically in gaming, surface brightness is described as N * L, where N is the normalized surface normal (see blue arrow below).
The greater the value of N * L, the more the object is facing towards the light and brighter the surface will be.
Assuming the damage done to the vampire is equal to N * L, should Mr. Vampire still be alive or now be a dead pile of dust?
(Note: Jen now totally understands how knowing linear algebra is useful in game development.)