rotate. If we want the rocket to turn a certain number of degrees, we simply write:
directionwhich returns the direction in degrees for a vector. Combining the two like this:
rotatefunction again. Its a bit tricker because the rate at which the ball would rotate depends on the speed of the ball, and the direction that it is traveling. In a future tutorial we will look at rotational dynamics, but for now I will give you a hint.