Version: Unity 6.2 (6000.2)
Language : English
Use low-level APIs to create a property visitor
Moving objects with vectors

Programming with mathematics

Unity exposes several public APIs that allow you to work with mathematical concepts in 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.

Additional resources

Use low-level APIs to create a property visitor
Moving objects with vectors
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961