ColliderExtensions.RandomPointInside
Extension Method in ColliderExtensions
Declaration
public static Vector3 RandomPointInside(this Collider collider)
Description
Returns a random point inside the collider's bounds.
Parameters
collider | The collider to get a random point from. |
Returns
Vector3 | A random point inside the collider's bounds. |
Overload
Declaration
public static Vector2 RandomPointInside(this Collider2D collider)
Description
Returns a random point inside the collider's bounds.
Parameters
collider | The collider to get a random point from. |
Returns
Vector2 | A random point inside the collider's bounds. |