Hello everyone,
I am getting an error generated by b2PulleyJoint.cpp. I know why it happens, i just need to catch that error in as3 and show a message to my users saying that they are doing something slightly wrong. How can I catch that error in as3? Is it possible? I have tried try/catch in my as3 files but the error keeps showing…
Thanks in advance!
By the way, the error is this one:
Code:
Assertion failed: (m_limitMass1 > b2_epsilon), function InitVelocityConstraints, file ../Box2D/Dynamics/Joints/b2PulleyJoint.cpp, line 162.
[object AlchemyExit]
at <anonymous>()
at <anonymous>()
at Box2DAS.Dynamics::b2World/HandleStep()[/Users/mariano/Documents/Carpeta Mágica/CA!_2012/programación/bocetos código/p35/wck-lib/Box2DAS/Dynamics/b2World.as:163]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Box2DAS.Common::b2EventDispatcher/dispatchEvent()[/Users/mariano/Documents/Carpeta Mágica/CA!_2012/programación/bocetos código/p35/wck-lib/Box2DAS/Common/b2EventDispatcher.as:28]
at Box2DAS.Dynamics::b2World/Step()[/Users/mariano/Documents/Carpeta Mágica/CA!_2012/programación/bocetos código/p35/wck-lib/Box2DAS/Dynamics/b2World.as:158]
at wck::World/step()[/Users/mariano/Documents/Carpeta Mágica/CA!_2012/programación/bocetos código/p35/wck-lib/wck/World.as:199]