| 283 | } |
| 284 | |
| 285 | void postStepRemove( Space* space, void* tshape, void* ) { |
| 286 | Shape* shape = reinterpret_cast<Shape*>( tshape ); |
| 287 | |
| 288 | if ( NULL != mMouseJoint && |
| 289 | ( mMouseJoint->getA() == shape->getBody() || mMouseJoint->getB() == shape->getBody() ) ) { |
| 290 | space->removeConstraint( mMouseJoint ); |
| 291 | eeSAFE_DELETE( mMouseJoint ); |
| 292 | } |
| 293 | |
| 294 | space->removeBody( shape->getBody() ); |
| 295 | space->removeShape( shape ); |
| 296 | |
| 297 | Shape::Free( shape, true ); |
| 298 | } |
| 299 | |
| 300 | cpBool catcherBarBegin( Arbiter* arb, Space* space, void* ) { |
| 301 | Shape *a, *b; |