free-language / box2d

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

Kinematic body with Contact Listener stops moving objects #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load attached test case into test bed
2. Use the n/m keys to manually move the box in the test
3. Move the box to the left until it touches the under side of the 
kinematic

What is the expected output? What do you see instead?

Expect to see the box pass through the kinematic body due to the disabling 
of the contact in the contact listener.

Instead the box collides with the kinematic body and gets permanently 
stuck.

What version of the product are you using? On what operating system?

Latest trunk version as at time of posting this issue.

Please provide any additional information below.

Original issue reported on code.google.com by jason.po...@gmail.com on 17 Apr 2010 at 10:56

Attachments:

GoogleCodeExporter commented 9 years ago
Actually most of the test setup is redundant.  The problem appears to manifest 
as soon 
as the contact is disabled in the contact listener.

Original comment by jason.po...@gmail.com on 17 Apr 2010 at 11:57

GoogleCodeExporter commented 9 years ago
More testing reveals setting contact->SetEnabled(false); results in same 
problem, with 
any collision.

Simpler test case attached.

Original comment by jason.po...@gmail.com on 17 Apr 2010 at 5:34

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry.. I just realized.  OneSidedPlatform test in testbed exhibits the same 
issue.

Original comment by jason.po...@gmail.com on 17 Apr 2010 at 5:41

GoogleCodeExporter commented 9 years ago
Fixed contact disabling with TOI.

Original comment by erinca...@gmail.com on 17 Apr 2010 at 6:15