// Token: 0x06005926 RID: 22822 RVA: 0x001EE9B4 File Offset: 0x001ECDB4 private void OnCollisionExit(Collision collision) { if (collision != null && collision.collider != null && ObjectInternal.DoColliderOwnershipTransfer(base.gameObject, collision.collider.gameObject)) { this.doCollisionStayCheck = true; this.DoMomentumTransfer(collision); } }
// Token: 0x06005927 RID: 22823 RVA: 0x001EEA04 File Offset: 0x001ECE04 private void OnCollisionStay(Collision collision) { if (this.doCollisionStayCheck && collision != null && collision.collider != null) { ObjectInternal.DoColliderOwnershipTransfer(base.gameObject, collision.collider.gameObject); this.doCollisionStayCheck = false; } }
// Token: 0x06005929 RID: 22825 RVA: 0x001EEBF0 File Offset: 0x001ECFF0 private void OnOwnershipTransfered(GameObject obj, VRC.Player newOwner, VRC.Player oldOwner) { ObjectInternal componentInSelfOrParent = obj.GetComponentInSelfOrParent <ObjectInternal>(); if (componentInSelfOrParent != null && componentInSelfOrParent.animator != null) { bool flag = componentInSelfOrParent.isMine && componentInSelfOrParent.animatorAppliesRootMotionWhenOwned; if (componentInSelfOrParent.animator.applyRootMotion != flag) { componentInSelfOrParent.animator.applyRootMotion = flag; } } }
// Token: 0x06005924 RID: 22820 RVA: 0x001EE8E0 File Offset: 0x001ECCE0 private void OnControllerColliderHit(ControllerColliderHit hit) { if (hit == null || hit.collider == null || hit.collider.gameObject == null) { return; } if (hit.collider.gameObject.IsPlayer()) { ObjectInternal.DoColliderOwnershipTransfer(hit.collider.gameObject, base.gameObject); } else { ObjectInternal.DoColliderOwnershipTransfer(base.gameObject, hit.collider.gameObject); } }