Want more features on Pastebin? Sign Up, it's FREE!
Guest

BroadPhase Snippet

By: a guest on Oct 24th, 2012  |  syntax: C++  |  size: 0.86 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         }
clone this paste RAW Paste Data