Converting movement and rotation into components so they can be used by other objects