Exemplo n.º 1
0
 public int CastAll(Vector3 direction, ICollection <RaycastHit> results, float distance, int layerMask, QueryTriggerInteraction query = QueryTriggerInteraction.UseGlobal)
 {
     if (_start == _end)
     {
         return(PhysicsUtil.SphereCastAll(_start, _rad, direction, results, distance, layerMask, query));
     }
     else
     {
         return(PhysicsUtil.CapsuleCastAll(_start, _end, _rad, direction, results, distance, layerMask, query));
     }
 }
Exemplo n.º 2
0
 public int Overlap(ICollection <Collider> results, int layerMask, QueryTriggerInteraction query = QueryTriggerInteraction.UseGlobal)
 {
     return(PhysicsUtil.OverlapCapsule(_start, _end, _rad, results, layerMask, query));
 }
Exemplo n.º 3
0
 public int Overlap(ICollection <Collider> results, int layerMask, QueryTriggerInteraction query = QueryTriggerInteraction.UseGlobal)
 {
     return(PhysicsUtil.OverlapBox(_center, this.Extents, results, Quaternion.identity, layerMask, query));
 }
Exemplo n.º 4
0
 public int CastAll(Vector3 direction, ICollection <RaycastHit> results, float distance, int layerMask, QueryTriggerInteraction query = QueryTriggerInteraction.UseGlobal)
 {
     return(PhysicsUtil.BoxCastAll(_center, this.Extents, direction, results, Quaternion.identity, distance, layerMask, query));
 }
 public int Overlap(ICollection <Collider> results, int layerMask, QueryTriggerInteraction query = QueryTriggerInteraction.UseGlobal)
 {
     return(PhysicsUtil.OverlapSphere(this.Center, this.Radius, results, layerMask, query));
 }