Physics Body Scale

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]

you cant scale a physics body without destroying it and recreating it. i know you can scale a display group containing a world of physics bodies but within the world they are relatively the same size to each other.

[import]uid: 6645 topic_id: 3936 reply_id: 12122[/import]