Has anyone else noticed that physics.setDrawMode has stopped changing the draw mode after the initial start?
I have been using this code for some time to allow CMD+UP to cycle through the physics draw modes:
require("physics") physics.start() physics.setGravity(0,0) physics.setDrawMode("normal") local composer\_isDebug = "normal" local accel = function( event ) print(composer\_isDebug) if (composer\_isDebug == "normal") then composer\_isDebug = "hybrid" elseif (composer\_isDebug == "hybrid") then composer\_isDebug = "debug" elseif (composer\_isDebug == "debug") then composer\_isDebug = "normal" end physics.setDrawMode(composer\_isDebug) print("composer\_isDebug: "..composer\_isDebug) return true end Runtime:addEventListener( "accelerometer", accel )
It no longer works. I’m not sure with which daily it stopped.