if you run this code you’ll see that the debug draw does not match the display items.
I want to be able to put my physics in a display group so that I can run a “camera”. At the moment it would seem that the physics is tied into the stage only
[lua]display.setStatusBar( display.HiddenStatusBar )
local physics=require(“physics”)
physics.start()
physics.setDrawMode(“hybrid”)
local DRAW_SCALE=30
local screen=display.newGroup()
local ground1 = display.newRect(0*DRAW_SCALE,0*DRAW_SCALE, 8*DRAW_SCALE, 0.5*DRAW_SCALE)
ground1:setFillColor(255,0,0)
screen:insert(ground1)
physics.addBody(ground1, “static”, {friction = 1, density=0} )
local ground2 = display.newRect(0*DRAW_SCALE,0.5*DRAW_SCALE, 1*DRAW_SCALE, 2*DRAW_SCALE)
ground2:setFillColor(255,0,255)
screen:insert(ground2)
physics.addBody(ground2, “static”, {friction = 1, density=0} )
screen.x = 100
screen.y = 100
screen.xScale=0.5
screen.yScale=0.5[/lua] [import]uid: 6645 topic_id: 3633 reply_id: 303633[/import]
[import]uid: 6645 topic_id: 3633 reply_id: 11381[/import]