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

Function blockerBegin

src/examples/physics/physics.cpp:265–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263Emitter emitterInstance;
264
265cpBool blockerBegin( Arbiter* arb, Space*, void* ) {
266 Shape *a, *b;
267 arb->getShapes( &a, &b );
268
269 Emitter* emitter = (Emitter*)a->getData();
270
271 emitter->blocked++;
272
273 return cpFalse; // Return values from sensors callbacks are ignored,
274}
275
276void blockerSeparate( Arbiter* arb, Space*, void* ) {
277 Shape *a, *b;

Callers 1

demo2CreateMethod · 0.85

Calls 2

getShapesMethod · 0.80
getDataMethod · 0.45

Tested by 1

demo2CreateMethod · 0.68