jesses / wck

Box2d Flash Alchemy Port + World Construction Kit (AS3 Physics Engine)
http://sideroller.com/wck
358 stars 55 forks source link

Box2D throwing alchemy errors #4

Closed Flassari closed 14 years ago

Flassari commented 14 years ago

I am unable to reproduce, since this has been able to run smoothly for thousands of times, but one time when I was setting the mass of a small object which is not dynamic (it's a set, standard ball) and has been successfully created plenty of times before, it threw this error:

Assertion failed: (m_I > 0.0f), function SetMassData, file ../Box2D/Dynamics/b2Body.cpp, line 352.
[object AlchemyExit]
    at Function/<anonymous>()
    at Function/<anonymous>()
    at Box2DAS.Dynamics::b2Body/SetMassData()[\frameworks\Box2DAS\Dynamics\b2Body.as:266].

Which followed with these errors: Assertion failed: (kNormal > b2_epsilon), function InitializeVelocityConstraints, file ../Box2D/Dynamics/Contacts/b2ContactSolver.cpp, line 159. [object AlchemyExit] at Function/() at Function/() at Box2DAS.Dynamics::b2World/HandleStep()[\frameworks\Box2DAS\Dynamics\b2World.as:162]

Assertion failed: (a.x >= 0.0f && a.y >= 0.0f), function SolveVelocityConstraints, file ../Box2D/Dynamics/Contacts/b2ContactSolver.cpp, line 374.
[object AlchemyExit]
    at Function/<anonymous>()
    at Function/<anonymous>()
    at Box2DAS.Dynamics::b2World/HandleStep()[\frameworks\Box2DAS\Dynamics\b2World.as:162]

Assertion failed: (m_entryCount < b2_maxStackEntries), function Allocate, file ../Box2D/Common/b2StackAllocator.cpp, line 38.
[object AlchemyExit]
    at Function/<anonymous>()
    at Function/<anonymous>()
    at Box2DAS.Dynamics::b2World/HandleStep()[\frameworks\Box2DAS\Dynamics\b2World.as:162]
Flassari commented 14 years ago

http://www.box2d.org/forum/viewtopic.php?f=4&t=5250 Seems to be a box2d error. Closing the issue.