Method OverlapSphere
OverlapSphere(RideVector3, Single, RideLayerMask, QueryTriggerInteraction)
Computes and stores colliders touching or inside the sphere.
Declaration
public static RideID[] OverlapSphere(RideVector3 position, float radius, RideLayerMask layerMask, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
Type | Name | Description |
---|---|---|
RideVector3 | position | Center of the sphere. |
System.Single | radius | Radius of the sphere. |
RideLayerMask | layerMask | A Layer mask defines which layers of colliders to include in the query. |
QueryTriggerInteraction | queryTriggerInteraction | Specifies whether this query should hit Triggers. |
Returns
Type | Description |
---|---|
RideID[] | Returns an array with all RideID entities with colliders touching or inside the sphere. |