VectorUtils
This class provides additional functionality for working with Vector3 vectors.
Available methods
This method returns 2D distance between two given 3D positions (in XZ plane, ignoring Y).
This method could be useful for getting distance between characters in top-down or strategy games, ignoring height of that characters.
This method generates random position inside of cube represented by two given positions (min and max).
This method returns the closest point on given mesh, from certain world point.
Example:
This method helps to detect if certain transform situated inside the given cone. It could be useful for enemies detection by AI bots.
Example:
Last updated