Dominic, thank you for responding.
I've created a CollisionListener class, as shown here;
class CollisionListener implements ContactListener
{
void beginContact(Contact contact)
{
print("begin contact");
}
void endContact(Contact contact)
{
print("end contact");
}
~Code snipped~
}
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;
ContactManager contactman;
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
out here.
On 16 mei, 18:55, Dominic Hamon <
domi...@google.com> wrote:
> Hello
>
> 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
>
domi...@google.com |
+1 (650) 394-6366
>
> On Wed, May 16, 2012 at 6:56 AM, Sebastiaan Hendriks <
asaelnath...@gmail.com