Dominic, thank you for responding.
I've created a CollisionListener class, as shown here;
class CollisionListener implements ContactListener
void beginContact(Contact contact)
void endContact(Contact contact)
Then in the main class, where the world is created and the objects are
created/placed, I set my CollisionListener class as the value of the
contactListener field in ContactManager. As shown here;
contactman = new ContactManager(world);
contactman.contactListener = new CollisionListener();
After working nearly a full day on getting a response from the engine
that 2 polygons have collided which eachother, I'm kind of blanking
On 16 mei, 18:55, Dominic Hamon <domi...@google.com
> First, thanks for being interested in DartBox2D.
> You'll need to create a ContactListener class that implements
> callbacks/ContactListener.dart and set it as the ContactManager's
> contactListener field. Once you do that, your listener will get callbacks
> as expected.
> Dominic Hamon | Software Engineer | Google
| +1 (650) 394-6366
> On Wed, May 16, 2012 at 6:56 AM, Sebastiaan Hendriks <asaelnath...@gmail.com