Exemplo n.º 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));
     }
 }
Exemplo n.º 2
0
 public ColliderShapeCollection(PhysicsComponent componentParam)
 {
     component = componentParam;
 }
Exemplo n.º 3
0
 public bool IsIgnoringCollisionWith(PhysicsComponent other)
 {
     return(!NativeCollisionObject.CheckCollideWith(other.NativeCollisionObject));
 }