Unity exposes several public APIs that allow you to incporate mathematical concepts into your code. These APIs are useful for manipulating vectors, matrices, and other mathematical constructs that are common in game development.
Topic | Description |
---|---|
Moving objects with vectors | Perform vector arithmetic with Unity’s 2D, 3D, and 4D vector classes to manage the position and speed of objects and the distance between them. |
Using common math functions | Use Unity’s Mathf class to apply trigonometric, logarithmic, and other math functions commonly required in game development. |
Using randomness | Use the Random class to generate various types of random values commonly required in game development. |