isFixedRotation not working

Hi all,

I have been having some issues with object.isFixedRotation = true in my game.

Basically, I want it so that when my two dynamic physics collide, there is no rotation.  I have applied the .isFixedRotation = true to both objects, however I have had no success in fixing the issue.

Please let me know if there is something else I should be doing.

Thanks

Share your object creation code so we can take a peek.  

Also, what exact version of Corona are you using?  ex: Latest daily build is 2016.2806

If you’re doing this, it is wrong:

local tmp = display.newRect( group, centerX + 60, bottom - 120, 40, 40 ) tmp:setFillColor( 1, 0, 0, 0.5 ) physics.addBody( tmp, "dynamic", { isFixedRotation = true } )

 This is right:

local tmp = display.newRect( group, centerX + 60, bottom - 120, 40, 40 ) tmp:setFillColor( 1, 0, 0, 0.5 ) physics.addBody( tmp, "dynamic", { } ) tmp.isFixedRotation = true

Full example:

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2016/01/isFixedRotation.zip

Share your object creation code so we can take a peek.  

Also, what exact version of Corona are you using?  ex: Latest daily build is 2016.2806

If you’re doing this, it is wrong:

local tmp = display.newRect( group, centerX + 60, bottom - 120, 40, 40 ) tmp:setFillColor( 1, 0, 0, 0.5 ) physics.addBody( tmp, "dynamic", { isFixedRotation = true } )

 This is right:

local tmp = display.newRect( group, centerX + 60, bottom - 120, 40, 40 ) tmp:setFillColor( 1, 0, 0, 0.5 ) physics.addBody( tmp, "dynamic", { } ) tmp.isFixedRotation = true

Full example:

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2016/01/isFixedRotation.zip