I created a motion controlled interactive piece that uses the xy coordinates of a user's hands (using a kinect) to control "animated type" bodyShapes -- essentially the user can knock around world construction kit physics objects with their hands. I have a lot of bodyShapes on the stage, and if the user frantically shakes their hands around, Alchemy crashes and the world freezes.
I have 2 questions:
A. Is there any way to prevent this error from occuring (id prefer to not reduce the number of bodyShapes on the stage)? Is there a maximum number of concurrent collisions, and is this variable changeable?
B. Is there a way to reload/restart the world object when this crash occurs?
Any help would be greatly appreciated! Here is the output from the error:
Assertion failed: (m_contactCount < m_contactCapacity), function Add, file ../Box2D/Dynamics/b2Island.h, line 74.
[object AlchemyExit]
at MethodInfo-751()
at MethodInfo-394()
at Box2DAS.Dynamics::b2World/HandleStep()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Box2DAS.Common::b2EventDispatcher/dispatchEvent()
at Box2DAS.Dynamics::b2World/Step()
at wck::World/step()
I created a motion controlled interactive piece that uses the xy coordinates of a user's hands (using a kinect) to control "animated type" bodyShapes -- essentially the user can knock around world construction kit physics objects with their hands. I have a lot of bodyShapes on the stage, and if the user frantically shakes their hands around, Alchemy crashes and the world freezes.
I have 2 questions:
A. Is there any way to prevent this error from occuring (id prefer to not reduce the number of bodyShapes on the stage)? Is there a maximum number of concurrent collisions, and is this variable changeable?
B. Is there a way to reload/restart the world object when this crash occurs?
Any help would be greatly appreciated! Here is the output from the error:
Assertion failed: (m_contactCount < m_contactCapacity), function Add, file ../Box2D/Dynamics/b2Island.h, line 74.
[object AlchemyExit]
at MethodInfo-751()
at MethodInfo-394()
at Box2DAS.Dynamics::b2World/HandleStep()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Box2DAS.Common::b2EventDispatcher/dispatchEvent()
at Box2DAS.Dynamics::b2World/Step()
at wck::World/step()