only calculate velocity if we have a non-zero deltaTime