Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Change fixedRotation runtime — Gideros Forum

Change fixedRotation runtime

DikkesnoekDikkesnoek Member
edited December 2012 in General questions
Hi,

When a dynamic object is in rest I don't want rotation. I do this like this:
 
local bodyDef = {type = b2.DYNAMIC_BODY, 
                position = {x = startX, y = startY}, 
                fixedRotation = true, 
                linearDamping = 0.5}
When I'll launch the object by touching the screen I like to change the
fixedRotation parameter to false. Is this possible?

I was also wondering if you can turn static bodies into dynamic bodies
after a certain time for example?

Thanks,

Marc

Comments

Sign In or Register to comment.