I'm trying to create a simple "reset" function for my car demo, i.e. when it's flipped on its roof I want to be able to flip it back on its wheels.
I've managed to move it up 2 units like this:
Car is a Node, carmodel is the DynamicPhysicsNode, attached to Node.
This works fine, but doing the same thing with localrotation sends the car to the moon :oops:
Matrix3f rotMatrix = new Matrix3f();
rotMatrix.fromAngleAxis(FastMath.PI/2, new Vector3f(1,0,0)); //x-axis
Does anybody know how to rotate the car back up again?