Structure wrapper for OverlapSphere
More...
|
| SphereOverlapData (Vector3 _origin, float _radius) |
| Prepare physics raycast parameters More...
|
|
Collider [] | Overlap (Vector3 _origin, float _radius, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Find all colliders touching or inside of the given box. More...
|
|
Collider [] | Overlap (int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Find all colliders touching or inside of the given box. More...
|
|
int | OverlapNonAlloc (Vector3 _origin, float _radius, ref Collider[] results, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Computes and stores colliders touching or inside the sphere into the provided buffer. More...
|
|
int | OverlapNonAlloc (ref Collider[] results, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Computes and stores colliders touching or inside the sphere into the provided buffer. More...
|
|
void | DrawOverlapGizmos (ref Collider[] colliderResult, int validArraySize, Color color=default(Color), Color hitColor=default(Color)) |
| Provide vizualize information (Gizmos) More...
|
|
void | Update (Vector3 _origin, float _radius) |
| Update parameters More...
|
|
void | Reset () |
| Reset parameters More...
|
|
override string | ToString () |
| Provide vizualize information (Gizmos) More...
|
|
Structure wrapper for OverlapSphere
◆ SphereOverlapData()
Kit.Physic.SphereOverlapData.SphereOverlapData |
( |
Vector3 |
_origin, |
|
|
float |
_radius |
|
) |
| |
Prepare physics raycast parameters
- Parameters
-
_origin | Center of the sphere. |
_radius | Radius of the sphere. |
◆ DrawOverlapGizmos()
void Kit.Physic.SphereOverlapData.DrawOverlapGizmos |
( |
ref Collider [] |
colliderResult, |
|
|
int |
validArraySize, |
|
|
Color |
color = default(Color) , |
|
|
Color |
hitColor = default(Color) |
|
) |
| |
◆ Overlap() [1/2]
Collider [] Kit.Physic.SphereOverlapData.Overlap |
( |
Vector3 |
_origin, |
|
|
float |
_radius, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Find all colliders touching or inside of the given box.
- Parameters
-
_origin | Center of the sphere. |
_radius | Radius of the sphere. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a ray. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- Returns an array with all colliders touching or inside the sphere.
- See also
- https://docs.unity3d.com/ScriptReference/Physics.OverlapSphere.html
◆ Overlap() [2/2]
Collider [] Kit.Physic.SphereOverlapData.Overlap |
( |
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Find all colliders touching or inside of the given box.
- Parameters
-
layerMask | A Layer mask that is used to selectively ignore colliders when casting a ray. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- Returns an array with all colliders touching or inside the sphere.
- See also
- https://docs.unity3d.com/ScriptReference/Physics.OverlapSphere.html
◆ OverlapNonAlloc() [1/2]
int Kit.Physic.SphereOverlapData.OverlapNonAlloc |
( |
Vector3 |
_origin, |
|
|
float |
_radius, |
|
|
ref Collider [] |
results, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Computes and stores colliders touching or inside the sphere into the provided buffer.
- Parameters
-
_origin | Center of the sphere. |
_radius | Radius of the sphere. |
results | The buffer to store the results in. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a ray. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- int The amount of colliders stored in results.
https://docs.unity3d.com/ScriptReference/Physics.OverlapSphereNonAlloc.html
Referenced by Kit.Physic.RaycastHelper.GetCurrentStruct().
◆ OverlapNonAlloc() [2/2]
int Kit.Physic.SphereOverlapData.OverlapNonAlloc |
( |
ref Collider [] |
results, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Computes and stores colliders touching or inside the sphere into the provided buffer.
- Parameters
-
results | The buffer to store the results in. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a ray. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- int The amount of colliders stored in results.
https://docs.unity3d.com/ScriptReference/Physics.OverlapSphereNonAlloc.html
◆ Reset()
void Kit.Physic.SphereOverlapData.Reset |
( |
| ) |
|
◆ ToString()
override string Kit.Physic.SphereOverlapData.ToString |
( |
| ) |
|
◆ Update()
void Kit.Physic.SphereOverlapData.Update |
( |
Vector3 |
_origin, |
|
|
float |
_radius |
|
) |
| |
Update parameters
- Parameters
-
_origin | Center of the sphere. |
_radius | Radius of the sphere. |
◆ origin
Vector3 Kit.Physic.SphereOverlapData.origin |
◆ radius
float Kit.Physic.SphereOverlapData.radius |
◆ hitCount
int Kit.Physic.SphereOverlapData.hitCount |
|
get |
hit count from last physics check.
◆ hitted
bool Kit.Physic.SphereOverlapData.hitted |
|
get |
◆ NONE
The documentation for this struct was generated from the following file: