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)); } }
public ColliderShapeCollection(PhysicsComponent componentParam) { component = componentParam; }