Gigacrash / box2d

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

PostSolve is never called in b2ContactListener #295

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Register a custom contact listener.
2. Put Log.d messages in overridded postSolve methods.
3. Collide two dynamic bodies.

What is the expected output? What do you see instead?
Expected output: the log messages.
What I see instead: nothing

What version of the product are you using? On what operating system?
Latest version of the box2d extension from repo
Android 4.1.2 + ndk

Please provide any additional information below.

Original issue reported on code.google.com by w...@skep.pl on 18 Oct 2012 at 6:54

GoogleCodeExporter commented 9 years ago
Check that you have the same call signature as the virtual function you are 
trying to override in your contact listener, eg. a missing 'const' will give 
you a new function in the derived class rather than overriding the base class 
function.

Original comment by chriszca...@gmail.com on 21 Oct 2012 at 5:08

GoogleCodeExporter commented 9 years ago
Yep, "const" was the problem. Thank you, and sorry for bothering..

Original comment by w...@skep.pl on 21 Oct 2012 at 2:39

GoogleCodeExporter commented 9 years ago

Original comment by erinca...@gmail.com on 26 Oct 2013 at 10:44