no solidity after Distance joint

Hi,

I have a rect and a circle and they collide as expected.

But when I connect them with a Distance joint, they loose their solidity and overlap.

How do I keep the solidity?

Best,
Joerg [import]uid: 55806 topic_id: 9442 reply_id: 309442[/import]

have you tried to turn on “hybrid” mode and see what caused the problem.

I would assume that the joint is connected to the objects origin point of references.

example:

[lua]-- in the following example, the reference point is at the center, 0,0

local myCircle = display.newCircle(0,0,25)
myCircle:setFillColor(255,0,0,255)
myCircle.x = 160
myCircle.y = 240
physics.addBody(myCircle, “dynamic”, {density = 1})[/lua]

hope this is what you’re looking for.

Check out my game:
Touch Cannon – a **FREE** game

please rate :slight_smile: [import]uid: 12455 topic_id: 9442 reply_id: 34595[/import]