Closed GoogleCodeExporter closed 8 years ago
here's some sample code:
public class MyFilterCallback : OverlapFilterCallback
{
// return true when pairs need collision
public virtual bool needBroadphaseCollision(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
{
bool collides = (proxy0.CollisionFilterGroup == proxy1.CollisionFilterMask);
return collides && (proxy1.CollisionFilterGroup == proxy0.CollisionFilterMask);
}
};
Original comment by sgs.ru...@gmail.com
on 14 Feb 2011 at 11:07
This isn't implemented yet, but I'll get on it soon. Thanks!
Original comment by andres.traks
on 15 Feb 2011 at 5:38
Should work as of r240. Can you try it?
Original comment by andres.traks
on 19 Feb 2011 at 1:16
Original issue reported on code.google.com by
sgs.ru...@gmail.com
on 14 Feb 2011 at 11:03