Ortuna / box2dweb

Automatically exported from code.google.com/p/box2dweb
0 stars 0 forks source link

Sensors do not create contacts, or fire contact listeners. #5

Closed GoogleCodeExporter closed 9 years ago

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

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

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

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

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

GoogleCodeExporter commented 9 years ago

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