filbs111 / box2d-learning

0 stars 0 forks source link

can see landscape blocks drawn twice, problems logged #18

Closed filbs111 closed 7 years ago

filbs111 commented 7 years ago

seen after bumped bomb explosion radius up to 200 and shoot landscape a lot. blocks are semi transparent, and seems can be drawn more than once (appear darker). this seems dependent on where player is ie affected by culling. also logs loads of "no loops in clippable path. this is unexpected" which appears related - if this is so, skips the bounds clipping check. however, in this case, would expect nothing to be drawn at all.

seems to happen if destroy all of a level block.

filbs111 commented 7 years ago

drawing twice fixed (seems was redrawing previous block when no path loops). however, still have problem that final destruction to remove last part of a landscape block apparently isn't applied. guess to do with new path being empty.

filbs111 commented 7 years ago

TODO delete the body once all fixtures purged

filbs111 commented 7 years ago

still spams logs a bit - maybe can still do update landscape for a deleted block. seems to work well enough for now.