Is it updating to fast or am I

Is this an issue or is it nothing I've realized that I believe my update method is a little fast i think. When i println() the velocity of an object even if i set the acceleration to 3 and the desired velocity to 100 in under 1 second its at max velocity dithering from 99-100. Is this something an issue or its suppose to be like that. If so could this cause physics issues as well?

nymon said:

It all depends on the mass of the object you are accelerating.


Ahh yes understandable thx
so even though if i was to place call the animation controller update method in this local update method though its fast the actual local update method is fine correct

dtrott said:

Also are you multiplying your force by the tpf (ticks per frame).
Typically this is about 1/50 which slows down the acceleration dramatically.


I've tried below in which force is 1 and maxSpeed is 10 and its still drifting between 10 and 9.9


rotAxis.setAvailableAcceleration((force*Timer.getTimer().getFrameRate())/(physNode.getMass()+feetNode.getMass()));
           rotAxis.setDesiredVelocity(maxSpeed);


It all depends on the mass of the object you are accelerating.

Also are you multiplying your force by the tpf (ticks per frame).



Typically this is about 1/50 which slows down the acceleration dramatically.