ChaseCam floating to...infinity?!?!?

hi there!



i'm new to jME and have been following the FlagRush tutorials. All was going fine until i got to part 5…adding the chase camera. Followed the tutorial exactly as it was but something strange happens to my chase cam.



The values of X and Z axis keep changing (as far as i understood this is supposed to happen up to a certain point but after a while the cam should become stable and directed towards our "player"). My problem is that these values change until X and Z values go beyond the range of a long value becoming a NaN.



any ideas why this might be happening??



(i choose not to post any code as my code is the same as in the tutorial…)



thanks in advance