kdrnic/box2dweb

Sensors do not create contacts, or fire contact listeners.

Closed this issue · 5 comments

What steps will reproduce the problem?
1. Create a ContactListener on your world, with BeginContact defined to log 
it's use
2. Create a dynamic body with a fixture of some sort attached
3. Create a static body with a sensor fixture attached
4. Drop dynamic body on to sensor
5. observe BeginContact on ContactListener does not fire

What is the expected output? What do you see instead?
I expected BeginContact to fire, and this didn't happen. I also expected the 
sensor object's ContactList to contain contacts referencing the objects within 
it. This was also not the case.

What version of the product are you using? On what operating system?
2.1a.1, in Google Chrome (current, stable channel).


Original issue reported on code.google.com by bluebie....@gmail.com on 18 Nov 2010 at 1:08

I think b2Shape.TestOverlap isn't working right, when fed a thing and a sensor?

Original comment by bluebie....@gmail.com on 18 Nov 2010 at 2:31

Thanks for reporting. I'll take a look at this on weekend.

Original comment by Uli.He...@googlemail.com on 18 Nov 2010 at 11:01

  • Added labels: Priority-High
  • Removed labels: Priority-Medium
Can you please provide a test case?
I don't see any problems using BeginContact.

I attached my test case. Note that it depends on a littler test-helper-script 
(b2t object).

Original comment by Uli.He...@googlemail.com on 19 Nov 2010 at 10:25

Attachments:

Huh. Must be a bug in my thingy. Sorry to have bothered you then! :)

Original comment by bluebie....@gmail.com on 20 Nov 2010 at 5:13

Original comment by Uli.He...@googlemail.com on 20 Nov 2010 at 1:50

  • Changed state: WontFix