Hello,
I have a sensor that I create with:
mysensor = display.newCircle( display.contentWidth/2, display.contentHeight/2, sensorRadius )
physics.addBody( mysensor ,{radius=20,isSensor=true} )
Afterwards in the enterFrame function I want to modify the radius of the sensor based on certain events. Is it possible to do so?
If I modify mysensor.width and mysensor.height it has no effect on the actual physics (if I use physics.setDrawMode( “hybrid” ) I can see that the sensor actually remains the same).
Any ideas? [import]uid: 17925 topic_id: 8550 reply_id: 308550[/import]