SHARE
TWEET

BroadPhase Snippet

a guest Oct 24th, 2012 39 Never
  1. if ( proxy0->m_clientObject == cylinderBody )
  2.         {
  3.                 return ( proxy1->m_clientObject == cylinderBody );      // cylinder must only collide with cylinder
  4.         }
  5.  
  6.         if ( proxy0->m_clientObject == boxBody )
  7.         {
  8.                 return ( proxy1->m_clientObject == sphereBody );        // box must only collide with sphere
  9.         }
  10.  
  11.         if ( proxy0->m_clientObject == sphereBody )
  12.         {
  13.                 return ( proxy1->m_clientObject == boxBody );           // sphere must only collide with box
  14.         }
  15.  
  16.         if ( proxy1->m_clientObject == cylinderBody )
  17.         {
  18.                 return ( proxy0->m_clientObject == cylinderBody );      // cylinder must only collide with cylinder
  19.         }
  20.  
  21.         if ( proxy1->m_clientObject == boxBody )
  22.         {
  23.                 return ( proxy0->m_clientObject == sphereBody );        // box must only collide with sphere
  24.         }
  25.  
  26.         if ( proxy1->m_clientObject == sphereBody )
  27.         {
  28.                 return ( proxy0->m_clientObject == boxBody );           // sphere must only collide with box
  29.         }
RAW Paste Data
Top