Hello there,
I’m having a little problem with isFixedRotation when a body collide in diagonal with other bodies. First of all, sorry to Jonathan Beebe because I have asked him these issues on his blog.
Ok, whats the problem? The problem is that I have a circular body with an image that have lights (chrome sphere) and I don’t want it to rotate when it collides with another body. I used the Simple Pool sample to apply the force into the ball and putted the isFixedRotation to true. When I shoot the ball on a diagonal it goes straight on X/Y axis!! If it hits the top then goes only on Y and if it hits one side then goes only on X. JonBeebe suggested to use one image above the other and keep isFixedRotation with false but I don’t think that is the best way, I think it’s a bug.
Here is the code for the ball:
local ballShape = { density=0.8, friction=0.5, bounce=0, radius=15 }
local fBall = display.newImage( “ball.png”)
fBall.x = 160
fBall.y = 240
physics.addBody( fBall, ballShape )
fBall.linearDamping = 0.3
fBall.angularDamping = 0.8
fBall.isBullet = true
fBall.isFixedRotation = true
Any idea? [import]uid: 8556 topic_id: 2037 reply_id: 302037[/import]