benjamin Posted June 2, 2014 Share Posted June 2, 2014 when i switch to p2js I can't seem to debug physics at all (I dont see any overlays). So here is what i am doing oncreatethis.pandas = game.add.group(game.world, 'pandas', false, true, Phaser.Physics.P2JS); this.pandas.createMultiple(28, 'panda');onupdate at certain intervals I fetch a panda!var panda = this.pandas.getFirstExists(false); if (!panda) { return; }...panda.reset(x, y);panda.debug = true;renderthis.pandas.forEachAlive(function(panda) { game.debug.body(panda); }); Link to comment Share on other sites More sharing options...
benjamin Posted June 2, 2014 Author Share Posted June 2, 2014 I refactored my code today, without using groups. and debugging seems fine. So i'll have another shot later to see if it's to do with groups... also I found game.debug.body is not required. Link to comment Share on other sites More sharing options...
Recommended Posts