So I've encountered a problem. I have door in my game. And buttons you have to push to open them.
The buttons cause the doors to turn into sensors so object may pass thew them (they're also turn transparent.)
But it seems if a body is on top of the sensor(even the tip of the corner) as it turns back in to a non-sensor Alchemy screw up.
So what do I do about this? is there any way for me to make the walls just push the object(s) out of the way?
Edit: Also, the objects in the way are bullet=true if that mean anything.
By the way, wtf is isGround?
Edit:
Things I have also tried:
1. active=false
I get:
2. enabled=false
Does nothing that I can see.
3. Moving it in and out of a masked categoryBits setting.
Seems to do what I want, but doesn't push the item out of the way, it just kinda sits there and glitches out when another object hits it.
The buttons cause the doors to turn into sensors so object may pass thew them (they're also turn transparent.)
But it seems if a body is on top of the sensor(even the tip of the corner) as it turns back in to a non-sensor Alchemy screw up.
Code:
Assertion failed: (manifold->pointCount > 0), function b2ContactSolver, file ../Box2D/Dynamics/Contacts/b2ContactSolver.cpp, line 52.
[object AlchemyExit]
at Function/<anonymous>()
at Function/<anonymous>()
at Box2DAS.Dynamics::b2World/HandleStep()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\Box2DAS\Dynamics\b2World.as:162]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Box2DAS.Common::b2EventDispatcher/dispatchEvent()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\Box2DAS\Common\b2EventDispatcher.as:27]
at Box2DAS.Dynamics::b2World/Step()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\Box2DAS\Dynamics\b2World.as:158]
at wck::World/step()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\wck\World.as:191]
Assertion failed: (manifold->pointCount > 0), function b2ContactSolver, file ../Box2D/Dynamics/Contacts/b2ContactSolver.cpp, line 52.
[object AlchemyExit]
at Function/<anonymous>()
at Function/<anonymous>()
at Box2DAS.Dynamics::b2World/HandleStep()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\Box2DAS\Dynamics\b2World.as:162]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Box2DAS.Common::b2EventDispatcher/dispatchEvent()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\Box2DAS\Common\b2EventDispatcher.as:27]
at Box2DAS.Dynamics::b2World/Step()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\Box2DAS\Dynamics\b2World.as:158]
at wck::World/step()[C:\Documents and Settings\Administrator\My Documents\Dropbox\Jems\Engine\wck\World.as:191]
Assertion failed: (manifold->pointCount > 0), function b2ContactSolver, file ../Box2D/Dynamics/Contacts/b2ContactSolver.cpp, line 52.
So what do I do about this? is there any way for me to make the walls just push the object(s) out of the way?
Edit: Also, the objects in the way are bullet=true if that mean anything.
By the way, wtf is isGround?
Edit:
Things I have also tried:
1. active=false
I get:
Code:
Assertion failed: (m_world->IsLocked() == false), function SetActive, file ../Box2D/Dynamics/b2Body.cpp, line 426.
2. enabled=false
Does nothing that I can see.
3. Moving it in and out of a masked categoryBits setting.
Seems to do what I want, but doesn't push the item out of the way, it just kinda sits there and glitches out when another object hits it.