示例#1
0
 public bool IsIgnoringCollisionWith(PhysicsComponent other)
 {
     if (ignoreCollisionBuffer != null)
     {
         return(ignoreCollisionBuffer.TryGetValue(other, out var state) && state == CollisionState.Ignore);
     }
     else if (other.ignoreCollisionBuffer != null)
     {
         return(other.IsIgnoringCollisionWith(this));
     }
     else if (other.NativeCollisionObject == null || NativeCollisionObject == null)
     {
         return(false);
     }
     else
     {
         return(!NativeCollisionObject.CheckCollideWith(other.NativeCollisionObject));
     }
 }
示例#2
0
 public ColliderShapeCollection(PhysicsComponent componentParam)
 {
     component = componentParam;
 }