openfl / box2d

Haxe port of Box2D, a popular rigid-body 2D physics engine
Other
95 stars 28 forks source link

body.setFixedRotation cause error. #8

Closed Angeloss closed 9 years ago

Angeloss commented 10 years ago

When I use the method with a dynamic body the game crash on all platforms. Flash player said this:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at box2D.dynamics::B2Body/resetMassData()[C:\HaxeToolkit\haxe\lib\box2d/1,2,0/box2D/dynamics/B2Body.hx:721] at box2D.dynamics::B2Body/setFixedRotation()[C:\HaxeToolkit\haxe\lib\box2d/1,2,0/box2D/dynamics/B2Body.hx:1004]

jgranick commented 9 years ago

It looks like this was fixed, but if anyone has an issue like this in Box2D, please report, thanks! :smile: