Hi Brucey
First I ask into the box2d forum because I think it was very related to the engine.
Then I discovered that the b2BodyDef::setAngle() is not present in the official API of Box2d.
My problem only happen with dynamic polygons object (created with b2PolygonDef).
Static or b2CircleDef give no freezing problem !
So, in my level editor when I modify any dynamic cube (for example) to change is b2BodyDef angle via setAngle(degrees:float) in order to re-create it after this new definition setting, my game freeze...
I look into the glue.cpp quickly and find this setter :
Maybe there is a problem somewhere with this degrees=>radians shortcut ?
I don't know, this is very strange since it works fine in any other situation.
And my code is using the exact same re-creation code for any definition.
Is this a bug ??
First I ask into the box2d forum because I think it was very related to the engine.
Then I discovered that the b2BodyDef::setAngle() is not present in the official API of Box2d.
My problem only happen with dynamic polygons object (created with b2PolygonDef).
Static or b2CircleDef give no freezing problem !
So, in my level editor when I modify any dynamic cube (for example) to change is b2BodyDef angle via setAngle(degrees:float) in order to re-create it after this new definition setting, my game freeze...
I look into the glue.cpp quickly and find this setter :
void bmx_b2bodydef_setangle(b2BodyDef * def, float32 angle) { def->angle = angle * 0.0174533f; }
Maybe there is a problem somewhere with this degrees=>radians shortcut ?
I don't know, this is very strange since it works fine in any other situation.
And my code is using the exact same re-creation code for any definition.
Is this a bug ??