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

Method removeStaticShape

src/modules/physics/src/eepp/physics/space.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void Space::removeStaticShape( Shape* shape ) {
212 if ( NULL != shape ) {
213 cpSpaceRemoveStaticShape( mSpace, shape->getShape() );
214
215 auto foundIt = std::find( mShapes.begin(), mShapes.end(), shape );
216 if ( foundIt != mShapes.end() )
217 mShapes.erase( foundIt );
218
219 PhysicsManager::instance()->addShapeFree( shape );
220 }
221}
222
223void Space::removeBody( Body* body ) {
224 if ( NULL != body ) {

Callers

nothing calls this directly

Calls 6

findFunction · 0.85
getShapeMethod · 0.80
addShapeFreeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected