[GE] displayGroup breaks physics coordinates/scale

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]

i think this was mentioned here too
http://developer.anscamobile.com/forum/2010/08/02/scaling-physics-bodies-attached-sprites#comment-7344

in my case in that post i was doing something different, but matthew pringle’s example i believe was similar to my issue above

you do mention that we should be able to put it all in a group and scale that, so I’m guessing it is a bug.

thanks
j

[import]uid: 6645 topic_id: 3633 reply_id: 11051[/import]

I have discovered that this is the debug/hybrid mode that is not scaling. I’ve just tried the “Bullet” example but put all the items in a “world” displaygroup

as you can see the world physics scales ok but the debug draw is only drawing the position of objects not the scale
[import]uid: 6645 topic_id: 3633 reply_id: 11381[/import]