Physics joint issue

Hi guys,

I have a rectangle that is joint to the celling. which works, but I want to join the rectangle at the tip to the celling. At the moment the rectangle seems to be hooked at the center.
I thought I could change the setReferencePoint, but nothing happens…

any help is appreciated

[code]
local physics = require “physics”
physics.start( true )
physics.setDrawMode(“normal”) – set to “debug” or “hybrid” to see collision boundaries
physics.setDrawMode(“hybrid”)
physics.setGravity( 0, 9.8 ) --> 0, 9.8 = Earth-like gravity

local lineShape = { -5,-5, 5,-5, 5,5, -5,5 }

local cel = display.newRect(0, 0, display.contentWidth, 100)
physics.addBody(cel, “static” )

local line = display.newRect(100, 200, 10, 200)
line:setReferencePoint( display.TopLeftReferencePoint )

physics.addBody(line, “dynamic” )
local joint = physics.newJoint( “pivot”, cel, line, cel.x, cel.y )

[/code] [import]uid: 67619 topic_id: 19380 reply_id: 319380[/import]