Exemplo n.º 1
0
 public void Execute()
 {
     for (int i = 0; i < OtherColliders.Length; i++)
     {
         ref var other = ref OtherColliders.AsRef(i);
         if (TestCollider.Intersects(other))
         {
             ResultCollisions.Add(other);
         }
     }
Exemplo n.º 2
0
 public void Execute()
 {
     for (int i = 0; i < OtherColliders.Length; i++)
     {
         ref var other = ref OtherColliders.AsRef(i);
         if (DistanceSqr(ref TestCollider, other))
         {
             NativeResultCollisions.Add(other);
         }
     }
 public unsafe ref      T this[int i] => ref Internal.AsRef(i);