Tryin to setup a 12 directional movement system in a game I've been developing..
When I walk around in the game, let's say I am going east.. my character rotates in a circle the entire time instead of JUST face east.. I've read the javadocs for Object3D and I'm still very lost as to how I can do this properly.. I need a way to either reset rotation before each directional face update, or something because it increments the new rotation request into the old one, and over rotates..
Here's a snippet:
switch (direction) {
case 2: // north west
rotateY(-45f);
rotateMesh();
translate(new SimpleVector(-3.2, 0, +5.55));
break;