Rotation freeze bug ?

Hail physics lovers

I've come up to an issue while developing with Box2das3, which I've been wondering, is it my fault or is it actually a bug from Box2das3?

The situation is: After a while, sometimes longer, sometimes shorter, my character ball stops rotating, freezing at a certain rotation angle. No metter what I do with it it just won't rotate. I can still move and play with it, and sometimes it strangely starts rotating again.

If you want to check the flash thing just download
http://www.antoniobrandao.com/zipflashe ... STEST4.zip
and give it a try.

Eventually it will never stop rotating at the first attempt. But if you try it more than once I'm sure you will witness the phenomenon.

Thanks in advance 🙂
I had the same problem, it's due to the limitation of the rotation in Flash.
When you set the rotation of the userData by the angle of the body :
Code:
bb.m_userData.rotation = bb.GetAngle() * (180/Math.PI);


You must limit the incrementation.

I don't remember exactly the maximum rotation, but you must limit the current rotation of the displayobject.
I made it for a project, but i don't have the code here.
Hello!
I had the same problem too.
The limit of correct rotation is above 30000.

In place of
Code:
bb.m_userData.rotation = bb.GetAngle() * (180/Math.PI);

use
Code:
var spriteAngle:Number=bb.GetAngle()*(180/Math.PI);
if(spriteAngle>30000) {
   spriteAngle-=360*Math.floor(spriteAngle/360);
}
bb.m_userData.rotation = spriteAngle;

I use this code and everything works perfectly! =)
Code:
bb.m_userData.rotation = (bb.GetAngle() * (180/Math.PI)) % 360;

Original thread: https://box2d.org/forum/viewtopic.php?t=2883