public static IgnorableRigidbody GetIgnorableCollision(Rigidbody rb) { if (rb == null) return null; return rb.AddOrGetComponent<IgnorableRigidbody>(); }