This episode shows how to find a direction from an angle, and vice versa, using trigonometry. It also covers the conversion from degrees to radians, and shows how to use the trig functions in Unity.
Source code:
https://github.com/SebLague/Intro-to-Gamedev
Graph of sin, cos, and tan: https://www.desmos.com/calculator/jckk7avktj
If you'd like to support these videos, you can make a recurring monthly donation (cancellable at any time) through Patreon: http://bit.ly/sebPatreon
Or a once-off donation through PayPal:
http://bit.ly/SupportGamedevTutorials
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.