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

Function catcherBarBegin

src/examples/physics/physics.cpp:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300cpBool catcherBarBegin( Arbiter* arb, Space* space, void* ) {
301 Shape *a, *b;
302 arb->getShapes( &a, &b );
303
304 Emitter* emitter = (Emitter*)a->getData();
305
306 emitter->queue++;
307
308 space->addPostStepCallback( &postStepRemove, b, NULL );
309
310 return cpFalse;
311}
312
313void demo3Create() {
314 defaultDrawOptions();

Callers 1

demo2CreateMethod · 0.85

Calls 3

getShapesMethod · 0.80
addPostStepCallbackMethod · 0.80
getDataMethod · 0.45

Tested by 1

demo2CreateMethod · 0.68