Vector3f dPos = ((Vector3f)Vector3f.sub(targetWheelPos, currentWheelPos, null).scale(getVehicleType().wheelSpringStrength));
if(dPos.length() > 0.001F)
{
wheel.moveEntity(dPos.x, dPos.y, dPos.z);
dPos.scale(0.5F);
Vector3f.sub(amountToMoveCar, dPos, amountToMoveCar);
}
}
moveEntity(amountToMoveCar.x, amountToMoveCar.y, amountToMoveCar.z);