I just thought I’d share the code to a little experiment I did the other day after reminiscing about maths class.
From reading this post you’ll learn the following:
- How to find the derivative of a simple function
- Rotating an object to a relative point/angle (useful when shooting bullets, pointing towards mouse etc.