yoshinoToylogic / bulletsharp

Automatically exported from code.google.com/p/bulletsharp
MIT License
0 stars 0 forks source link

OverlapFilterCallback issue #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello. I'm having a problem implementing a custom OverlapFilterCallback.  When 
i try to inherit from it i get a "cannot access internal  contructor".  Has 
this been properly implemented yet?

Thanks.

Original issue reported on code.google.com by sgs.ru...@gmail.com on 14 Feb 2011 at 11:03

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Should work as of r240. Can you try it?

Original comment by andres.traks on 19 Feb 2011 at 1:16