public override void OnCollide(IEntity With) { //Do nothing. }
public abstract void OnCollide(IEntity With);
public override void OnCollide(IEntity With) { PlayerEntity pe = With as PlayerEntity; if (pe != null) { pe.Hurt(1); } }
public bool Collides(IEntity Other) { _bounds.Pos = _pos - new Vector3 (_bounds.Width / 2, 0, _bounds.Depth / 2); Other._bounds.Pos = Other._pos - new Vector3 (Other._bounds.Width / 2, 0, Other._bounds.Depth / 2); return !Other._noclip && _bounds.Intersects (Other._bounds); }