2017-04-12
[public] 61.9K views, 3.17K likes, 17.0 dislikes audio only
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