Ejemplo n.º 1
0
 // Provides rudimentary collision detection with models
 public virtual bool Collides(BasicModel otherModel)
 {
     return boundingSphere.Contains(otherModel.boundingSphere) != ContainmentType.Disjoint;
 }
Ejemplo n.º 2
0
 // Provides rudimentary collision detection with models
 public virtual bool Collides(BasicModel otherModel)
 {
     return(boundingSphere.Contains(otherModel.boundingSphere) != ContainmentType.Disjoint);
 }