looks like problem with postCollision and isFixedRotation

Hi,

I have a small problem which I believe is a bug.
if I run the following code:

local physics = require(“physics”)
physics.start()

triggerRect = display.newRoundedRect(220 , 100, 100, 1, 0 )
physics.addBody(triggerRect, “static”, {friction=1, bounce=0, density=1})

local demoCube = display.newRoundedRect(228, 20, 40, 40, 0 )
physics.addBody(demoCube, {friction=1, bounce=0.1, density=0.1})
demoCube.isFixedRotation = true

local function onPostCollision( event )
if ( event.force > 0.3) then
print(event.force)
end
end

Runtime:addEventListener( “postCollision”, onPostCollision )

The postCollision is being called 17 times. If I remove the isFixedRotation it is being calling once.
You can also see that the event force is the exact same so that’s why I think it is a bug.

I have found the following on the forum
http://developer.anscamobile.com/forum/2010/09/15/isfixedrotation-cause-problem-collisions
but I don’t know if something happend after…

I am using the Mac emulator version 2011.268

Thanks,
Roni. [import]uid: 26945 topic_id: 7559 reply_id: 307559[/import]

I have tested it on windows too (2011.288) and the problem does not happens there…

any suggestions ?
[import]uid: 26945 topic_id: 7559 reply_id: 27260[/import]

really?

I will try on then [import]uid: 43010 topic_id: 7559 reply_id: 27360[/import]

Hey Ronise

It work fine on device. It’s just a bug of Mac emulator

Thx [import]uid: 43010 topic_id: 7559 reply_id: 27363[/import]