@ Pure @ Inline ( value = "PhysicsUtil.getPhysicsEngine().acceleration(($1), ($2), ($3))" , imported = { PhysicsUtil . class } ) public static double acceleration ( double previousSpeed , double currentSpeed , double dt ) { return engine . acceleration ( previousSpeed , currentSpeed , dt ) ; }
Replies the new acceleration according to a previous velocity and a current velocity and given time .