TheBuzzSaw/cyborus-game-engine — Issue #2: Entities need to know what direction they are facing
Author: cdaragorn
Created: 2011-11-29 15:49:56+00:00
State: open

We need a direction vector in entity that can be used to determine what an entities local coordinate plane is.

In other words, we need a vector that says which direction is "forward" for an entity, and another one that says which way is "up". This will allow us to tell an entity to move in a given direction based on it's current orientation, rather than globally. So if we just want it to move forward, we can just tell it to do that and not have to worry about which way forward is, at least as far as lua is concerned.