Hi, I am new to jmonkey so this is probably an noob question !
In other game engines, you put an object, rotate and translate, so when you translate it, it goes in the direction of the face it is translated.
But in jm3 there is no translate ? When I use the move it just goes to another direction like I didn’t have rotate the object at all. How to rotate and translate the object in the simple way ?
I am just trying to make a 2d game like asteroid where using up you just to forward whatever direction the object is rotated, and left/right just rotate the object.
Some code
if (up) { spatial.move(0,tpf400,0); }
if (down) { spatial.move(0,tpf-400,0); }
if (left) { spatial.rotate(0,0,0.005f); }
if (right) { spatial.rotate(0,0,-0.005f); }
Expected : the object moves forward / downward .
Happening: the object just go down / up in the screen dosent matter how its rotated.
Thanks in advance !
wagfeliz