Behaviours get jerky when far from origin

When I create an object and transform it so that it is not to far from the origin, and then attach keyboard behaviour, the object moves around smoothly. However, if I transform the object along way from origin it and moves in jerks.

I am transforming the object on a vector of rougly (10000000,10000000,10000000). The bigger the vector the more the object moves in jumps. Can anyone help and tell me what i’m doing wrong.

Thanks,

Ben

Sounds like you’re hitting precision errors - try switching from floats to doubles. If you’re already using doubles, then try using javax.media.j3d.HiResCoord instead.

That sounds like a good idea, but how do i represent a HiResCoord transformation as a vector or whatever.

I found that if i have a Vector3d(15000000,15000000,15000000) if you then place a camera so that you can see this object, like a colorCube. If you then move the object o Vector3d(15000000.4,15000000.4,15000000.4) the object does not move. if you move it to (15000000.5,15000000.5,15000000.5) the object actually moves to (15000001,15000001,15000001).

So how do i go about using HiResCoords?

Thanks