i am trying to zoom a physic body
local physics = require('physics')
physics.start()
physics.setDrawMode( "hybrid" )
-- ractangular
local imageObj2 = display.newImage('shape/ruler01.png')
imageObj2.x, imageObj2.y = 100, 300
physics.addBody(imageObj2, "static", {density=3.0, friction=0.5, bounce=0.3 } )
local zoomRatio = 3.5
Thanks for the guide!
but it seems like the collision detection doesn’t scale after i scaled my object
Question:
- is there a way to zoom a simple ractangle, circle or even a complex body? [import]uid: 10373 topic_id: 3936 reply_id: 303936[/import]