public static removeCollider ( |
||
collider | Collider. | |
Résultat | void |
/// <summary> /// the parent Entity will call this at various times (when removed from a scene, disabled, etc) /// </summary> public virtual void unregisterColliderWithPhysicsSystem() { if (_isParentEntityAddedToScene) { Physics.removeCollider(this, true); } }
/// <summary> /// the parent Entity will call this at various times (when removed from a scene, disabled, etc) /// </summary> public virtual void unregisterColliderWithPhysicsSystem() { if (_isParentEntityAddedToScene && _isColliderRegistered) { Physics.removeCollider(this); } _isColliderRegistered = false; }
public void removeColliders() { if (_colliders == null) { return; } foreach (var collider in _colliders) { Physics.removeCollider(collider); } _colliders = null; }