Model walking sideways?

i have been playing with cameras for a few days and resolved to use a chase camera. I got this lovely walking md3 file that textures and animates perfectly and this great chasecam. However, for some reason, the model seems to be moving sideways when it's attached to the chasecam. for example, the model is facing right but it's moving straight. I can't seem to pinpoint where the problem is. I tried rotating the model before making it part of the chasecam to no avail… Help?

Are you moving the Node which the model is attached to or the model itself?  If you are manipulating the node, it probably has a different direction to that of the model.

Rotate the model by the angle that it appears to be off by (90, 180…)

float angle = 90;

Vector3f axisRotation = new Vector3f(0, 0, 1);
model.getLocalRotation().fromAngleAxis(angle * FastMath.DEG_TO_RAD, axisRotation);

Give that a shot.

thank you :stuck_out_tongue: that just about solved my problem. Silly me, i rotated the model now and it works fine.

No problem.

I dont know if its a better way to represent angles, but yesterday I read up about rotations and they used divisions of FastMath.PI:

Vector3f axisRotation = new Vector3f(0, 0, 1);
model.getLocalRotation().fromAngleAxis(FastMath.PI / 2, axisRotation);

Might be a bit quicker.