| 44 | } |
| 45 | |
| 46 | void SqBoundsManager::addShape(ShapeSim& shape) |
| 47 | { |
| 48 | PX_ASSERT(shape.getFlags() & PxShapeFlag::eSCENE_QUERY_SHAPE); |
| 49 | PX_ASSERT(!shape.getBodySim()->usingSqKinematicTarget()); |
| 50 | PX_ASSERT(!shape.getBodySim()->isFrozen()); |
| 51 | |
| 52 | const PxU32 id = mShapes.size(); |
| 53 | PX_ASSERT(id == mRefs.size()); |
| 54 | PX_ASSERT(id == mBoundsIndices.size()); |
| 55 | |
| 56 | shape.setSqBoundsId(id); |
| 57 | |
| 58 | mShapes.pushBack(&shape); |
| 59 | mRefs.pushBack(PX_INVALID_U32); // PT: TODO: should be INVALID_PRUNERHANDLE but cannot include SqPruner.h |
| 60 | mBoundsIndices.pushBack(shape.getElementID()); |
| 61 | mRefless.pushBack(&shape); |
| 62 | } |
| 63 | |
| 64 | void SqBoundsManager::removeShape(ShapeSim& shape) |
| 65 | { |
nothing calls this directly
no test coverage detected