MCPcopy Create free account
hub / github.com/axmolengine/axmol / getShapes

Method getShapes

core/physics/PhysicsWorld.cpp:505–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505Vector<PhysicsShape*> PhysicsWorld::getShapes(const Vec2& point) const
506{
507 Vector<PhysicsShape*> arr;
508 cpSpacePointQuery(_cpSpace, PhysicsHelper::vec22cpv(point), 0, CP_SHAPE_FILTER_ALL,
509 (cpSpacePointQueryFunc)PhysicsWorldCallback::getShapesAtPointFunc, &arr);
510
511 return arr;
512}
513
514PhysicsShape* PhysicsWorld::getShape(const Vec2& point) const
515{

Callers 5

doAddBodyMethod · 0.80
doRemoveBodyMethod · 0.80
onTouchBeganMethod · 0.80

Calls 1

cpSpacePointQueryFunction · 0.85

Tested by 1

onTouchBeganMethod · 0.64