Added rotational velocity and world looping math.