Structure wrapper for CapsuleOverlap
More...
|
| CapsuleOverlapData (Vector3 _point0, Vector3 _point1, float _radius) |
| Prepare physics raycast parameters More...
|
|
Collider [] | Overlap (Vector3 _point0, Vector3 _point1, float _radius, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Check the given capsule against the physics world and return all overlapping colliders. More...
|
|
Collider [] | Overlap (int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Check the given capsule against the physics world and return all overlapping colliders. More...
|
|
int | OverlapNonAlloc (Vector3 _point0, Vector3 _point1, float _radius, ref Collider[] results, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Check the given capsule against the physics world and return all overlapping colliders in the user-provided buffer. Same as Physics.OverlapCapsule but does not allocate anything on the managed heap. More...
|
|
int | OverlapNonAlloc (ref Collider[] results, int layerMask=Physics.DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Check the given capsule against the physics world and return all overlapping colliders in the user-provided buffer. Same as Physics.OverlapCapsule but does not allocate anything on the managed heap. More...
|
|
void | DrawOverlapGizmos (ref Collider[] colliderResult, int validArraySize, Color color=default(Color), Color hitColor=default(Color)) |
| Provide vizualize information (Gizmos) More...
|
|
void | Update (Vector3 _point0, Vector3 _point1, float _radius) |
| Update parameters More...
|
|
void | Reset () |
| Reset parameters More...
|
|
override string | ToString () |
| Provide vizualize information (Gizmos) More...
|
|
|
Vector3 | point0 |
| The center of the sphere at the start of the capsule. More...
|
|
Vector3 | point1 |
| The center of the sphere at the end of the capsule. More...
|
|
float | radius |
| The radius of the capsule. More...
|
|
Structure wrapper for CapsuleOverlap
◆ CapsuleOverlapData()
Kit.Physic.CapsuleOverlapData.CapsuleOverlapData |
( |
Vector3 |
_point0, |
|
|
Vector3 |
_point1, |
|
|
float |
_radius |
|
) |
| |
Prepare physics raycast parameters
- Parameters
-
_point0 | The center of the sphere at the start of the capsule. |
_point1 | The center of the sphere at the end of the capsule. |
_radius | The radius of the capsule. |
◆ DrawOverlapGizmos()
void Kit.Physic.CapsuleOverlapData.DrawOverlapGizmos |
( |
ref Collider [] |
colliderResult, |
|
|
int |
validArraySize, |
|
|
Color |
color = default(Color) , |
|
|
Color |
hitColor = default(Color) |
|
) |
| |
◆ Overlap() [1/2]
Collider [] Kit.Physic.CapsuleOverlapData.Overlap |
( |
Vector3 |
_point0, |
|
|
Vector3 |
_point1, |
|
|
float |
_radius, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Check the given capsule against the physics world and return all overlapping colliders.
- Parameters
-
_point0 | The center of the sphere at the start of the capsule. |
_point1 | The center of the sphere at the end of the capsule. |
_radius | The radius of the capsule. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- Collider[] Colliders touching or inside the capsule.
- See also
- https://docs.unity3d.com/ScriptReference/Physics.OverlapCapsule.html
◆ Overlap() [2/2]
Collider [] Kit.Physic.CapsuleOverlapData.Overlap |
( |
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Check the given capsule against the physics world and return all overlapping colliders.
- Parameters
-
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- Collider[] Colliders touching or inside the capsule.
- See also
- https://docs.unity3d.com/ScriptReference/Physics.OverlapCapsule.html
◆ OverlapNonAlloc() [1/2]
int Kit.Physic.CapsuleOverlapData.OverlapNonAlloc |
( |
Vector3 |
_point0, |
|
|
Vector3 |
_point1, |
|
|
float |
_radius, |
|
|
ref Collider [] |
results, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Check the given capsule against the physics world and return all overlapping colliders in the user-provided buffer. Same as Physics.OverlapCapsule but does not allocate anything on the managed heap.
- Parameters
-
_point0 | The center of the sphere at the start of the capsule. |
_point1 | The center of the sphere at the end of the capsule. |
_radius | The radius of the capsule. |
results | The buffer to store the results into. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- int The amount of entries written to the buffer.
- See also
- https://docs.unity3d.com/ScriptReference/Physics.OverlapCapsuleNonAlloc.html
Referenced by Kit.Physic.RaycastHelper.GetCurrentStruct().
◆ OverlapNonAlloc() [2/2]
int Kit.Physic.CapsuleOverlapData.OverlapNonAlloc |
( |
ref Collider [] |
results, |
|
|
int |
layerMask = Physics.DefaultRaycastLayers , |
|
|
QueryTriggerInteraction |
queryTriggerInteraction = QueryTriggerInteraction.UseGlobal |
|
) |
| |
Check the given capsule against the physics world and return all overlapping colliders in the user-provided buffer. Same as Physics.OverlapCapsule but does not allocate anything on the managed heap.
- Parameters
-
results | The buffer to store the results into. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
- Returns
- int The amount of entries written to the buffer.
- See also
- https://docs.unity3d.com/ScriptReference/Physics.OverlapCapsuleNonAlloc.html
◆ Reset()
void Kit.Physic.CapsuleOverlapData.Reset |
( |
| ) |
|
◆ ToString()
override string Kit.Physic.CapsuleOverlapData.ToString |
( |
| ) |
|
◆ Update()
void Kit.Physic.CapsuleOverlapData.Update |
( |
Vector3 |
_point0, |
|
|
Vector3 |
_point1, |
|
|
float |
_radius |
|
) |
| |
Update parameters
- Parameters
-
_origin | |
_orientation | |
_halfExtends | |
◆ point0
Vector3 Kit.Physic.CapsuleOverlapData.point0 |
The center of the sphere at the start of the capsule.
◆ point1
Vector3 Kit.Physic.CapsuleOverlapData.point1 |
The center of the sphere at the end of the capsule.
◆ radius
float Kit.Physic.CapsuleOverlapData.radius |
The radius of the capsule.
◆ hitCount
int Kit.Physic.CapsuleOverlapData.hitCount |
|
get |
hit count for last physics check.
◆ hitted
bool Kit.Physic.CapsuleOverlapData.hitted |
|
get |
◆ NONE
The documentation for this struct was generated from the following file: