Structure wrapper for OverlapBox
More...
|
| BoxOverlapData (Vector3 _origin, Vector3 _halfExtends, Quaternion _orientation) |
| Prepare physics raycast parameters More...
|
|
Collider [] | Overlap (Vector3 _origin, Vector3 _halfExtends, Quaternion _orientation, 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, Vector3 _halfExtends, Quaternion _orientation, ref Collider[] results, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Find all colliders touching or inside of the given box, and store them into the buffer. More...
|
|
int | OverlapNonAlloc (ref Collider[] results, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Find all colliders touching or inside of the given box, and store them into the 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, Vector3 _halfExtends, Quaternion _orientation) |
| Update parameters More...
|
|
void | Reset () |
| Reset parameters More...
|
|
override string | ToString () |
| Provide vizualize information (Gizmos) More...
|
|
Structure wrapper for OverlapBox
◆ BoxOverlapData()
Kit.Physic.BoxOverlapData.BoxOverlapData |
( |
Vector3 |
_origin, |
|
|
Vector3 |
_halfExtends, |
|
|
Quaternion |
_orientation |
|
) |
| |
Prepare physics raycast parameters
- Parameters
-
_origin | Center of the box. |
_orientation | |
_halfExtends | |
◆ DrawOverlapGizmos()
void Kit.Physic.BoxOverlapData.DrawOverlapGizmos |
( |
ref Collider [] |
colliderResult, |
|
|
int |
validArraySize, |
|
|
Color |
color = default(Color) , |
|
|
Color |
hitColor = default(Color) |
|
) |
| |
◆ Overlap() [1/2]
Collider [] Kit.Physic.BoxOverlapData.Overlap |
( |
Vector3 |
_origin, |
|
|
Vector3 |
_halfExtends, |
|
|
Quaternion |
_orientation, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Find all colliders touching or inside of the given box.
- Parameters
-
_origin | Center of the box. |
_halfExtends | Half of the size of the box in each dimension. |
_orientation | Rotation of the box. |
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.OverlapBox.html
◆ Overlap() [2/2]
Collider [] Kit.Physic.BoxOverlapData.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.OverlapBox.html
◆ OverlapNonAlloc() [1/2]
int Kit.Physic.BoxOverlapData.OverlapNonAlloc |
( |
Vector3 |
_origin, |
|
|
Vector3 |
_halfExtends, |
|
|
Quaternion |
_orientation, |
|
|
ref Collider [] |
results, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Find all colliders touching or inside of the given box, and store them into the buffer.
- Parameters
-
_origin | Center of the box. |
_halfExtends | Half of the size of the box in each dimension. |
_orientation | Rotation of the box. |
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.OverlapBoxNonAlloc.html
Referenced by Kit.Physic.RaycastHelper.GetCurrentStruct().
◆ OverlapNonAlloc() [2/2]
int Kit.Physic.BoxOverlapData.OverlapNonAlloc |
( |
ref Collider [] |
results, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Find all colliders touching or inside of the given box, and store them into the 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.OverlapBoxNonAlloc.html
◆ Reset()
void Kit.Physic.BoxOverlapData.Reset |
( |
| ) |
|
◆ ToString()
override string Kit.Physic.BoxOverlapData.ToString |
( |
| ) |
|
◆ Update()
void Kit.Physic.BoxOverlapData.Update |
( |
Vector3 |
_origin, |
|
|
Vector3 |
_halfExtends, |
|
|
Quaternion |
_orientation |
|
) |
| |
Update parameters
- Parameters
-
_origin | |
_halfExtends | |
_orientation | |
◆ halfExtends
Vector3 Kit.Physic.BoxOverlapData.halfExtends |
Half of the size of the box in each dimension.
◆ orientation
Quaternion Kit.Physic.BoxOverlapData.orientation |
◆ origin
Vector3 Kit.Physic.BoxOverlapData.origin |
◆ hitCount
int Kit.Physic.BoxOverlapData.hitCount |
|
get |
hit count from last physics check.
◆ hitted
bool Kit.Physic.BoxOverlapData.hitted |
|
get |
◆ NONE
The documentation for this struct was generated from the following file: