Ref points and physics

First few links here: http://developer.anscamobile.com/search/node/reference%20physics%20type%3Aforum

Ok, so, I’m assuming I’m not alone in this and that it is still a bug, BUT when I set the reference point of a basic rectangle, give it a physics body and rotate it, it is obvious the the physics bounding box is not rotating around the same reference point. eg:

[lua]local physics = require(“physics”)
physics.start()
physics.setDrawMode( “hybrid” ) – normal, hybrid, debug

function makeRect( x, y, rot )

local trk = display.newGroup()

trk.rect = display.newRect( trk, -50, -10, 100, 20 )
trk.cona = display.newCircle( trk, -45, 0, 5 )
trk.conb = display.newCircle( trk, 45, 0, 5 )
trk.cona:setFillColor( 0,0,255 )
trk.conb:setFillColor( 0,0,255 )

trk.x, trk.y = x, y

local shape = { -50, -10, 50, -10, 50, 10, -50, 10 }

physics.addBody( trk, “static”, { density=1, friction=1, bounce=.1, shape=shape } )
trk.xReference, trk.yReference = -50, -10

– trk.rotation = 10 – QUE???
end

local lasttrk = makeRect( 10, 200, 45 )

function makeRock( x, y )
local rock = display.newImage( “rock.png” )
physics.addBody( rock, “dynamic”, { density=1, bounce=.2, friction=1, radius=35 } )
return rock
end

makeRock( 100, 100 )[/lua]

Has any progress been made on this or does anyone have any better ideas?

Matt [import]uid: 8271 topic_id: 8949 reply_id: 308949[/import]