Advertisement
Guest User

BroadPhase Snippet

a guest
Oct 24th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement