android - Bodies colliding multiple times in single contact [AndEngine] -
in game i'm developing, have bodies (from box2d extension) flying around. of these bodies collide each other. problem every single contact begincontact method in contactlistener called twice (at least).
both bodies colliding have maximum elasticity of 1.
is there way create collision happen once, i.e., have begincontact called 1 time every contact?
turns out had created 2 identical bodies behind 1 mistake. obviously, caused begincontact method called twice each collision.
this must 1 of sneakiest bugs have ever had.
android box2d andengine
No comments:
Post a Comment