MCPcopy Create free account
hub / github.com/SpartanJ/eepp / postStepRemove

Function postStepRemove

src/examples/physics/physics.cpp:285–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void 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
300cpBool catcherBarBegin( Arbiter* arb, Space* space, void* ) {
301 Shape *a, *b;

Callers 1

catcherBarBeginMethod · 0.85

Calls 6

removeConstraintMethod · 0.80
removeBodyMethod · 0.80
removeShapeMethod · 0.80
getAMethod · 0.45
getBodyMethod · 0.45
getBMethod · 0.45

Tested by 1

catcherBarBeginMethod · 0.68