isFixedRotation cause problem on collisions

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]

anybody? [import]uid: 8556 topic_id: 2037 reply_id: 5998[/import]

I can’t reproduce this – if I set the cueball in SimplePool to fixed rotation, it still seems to behave normally:

cueball.linearDamping = 0.3  
cueball.angularDamping = 0.8  
cueball.isBullet = true  
cueball.isFixedRotation = true  

What happens for you if you insert “cueball.isFixedRotation” into SimplePool? [import]uid: 3007 topic_id: 2037 reply_id: 6413[/import]

I have created the issue #2075 with this problem, is there a way that I can send the files? [import]uid: 8556 topic_id: 2037 reply_id: 6417[/import]

Was this solved for you? I have the same problem, how can I find the ticket and see if it’s solved or what the solution is? [import]uid: 35378 topic_id: 2037 reply_id: 52293[/import]