currentVelocity = currentVelocity + deceleration * time;
currentVelocity = currentVelocity - coastDeceleration * time;
	public void update(float time) {		if(moving) {			currentVelocity = prevVelocity + currentAcceleration * time;			if(currentVelocity > maxVelocity) {				currentVelocity = maxVelocity;			} else if(currentVelocity < minVelocity) {                currentVelocity = minVelocity;			}		} else {            if(currentVelocity > 0) {                currentVelocity = currentVelocity + deceleration * time;			    if(currentVelocity < 0) {                    currentVelocity = 0;			    }            } else if(currentVelocity < 0) {				currentVelocity = currentVelocity + acceleration * time;                if(currentVelocity > 0) {                    currentVelocity = 0;                }			}		}		prevVelocity = currentVelocity;				if(time < Float.MAX_VALUE) {			distance += currentVelocity * time;            currentAngle += currentTurningVel * time;                }                moving = false;	}