Exemplo n.º 1
0
 public ContactData generateContacts(Collidable other)
 {
     Contact contact = new Contact(other, this.plane);
     if (other as Sphere != null)
     {
         contact.SphereAndPlane();
     }
     if (other as Box != null)
     {
         contact.BoxAndHalfSpace();
     }
     return contact.GetContactData();
 }
Exemplo n.º 2
0
 public override ContactData generateContacts(Collidable other)
 {
     Contact contact = null;
     contact = new Contact(this, other);
     if (other as Box != null)
     {
         contact.BoxAndBox();
     }
     if (other as Sphere != null)
     {
         contact.SphereAndBox();
     }
     return contact.GetContactData();
 }