예제 #1
0
 public override void OnCollide(IEntity With)
 {
     //Do nothing.
 }
예제 #2
0
 public abstract void OnCollide(IEntity With);
예제 #3
0
 public override void OnCollide(IEntity With)
 {
     PlayerEntity pe = With as PlayerEntity;
     if (pe != null) {
         pe.Hurt(1);
     }
 }
예제 #4
0
 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);
 }