MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / addShape

Method addShape

physx/source/simulationcontroller/src/ScScene.cpp:4929–4939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4927}
4928
4929void Sc::Scene::addShape(RigidSim& owner, ShapeCore& shapeCore, PxBounds3* uninflatedBounds)
4930{
4931 ShapeSim* sim = mShapeSimPool->construct(owner, shapeCore);
4932 mNbGeometries[shapeCore.getGeometryType()]++;
4933
4934 //register shape
4935 mSimulationController->addShape(&sim->getLLShapeSim(), sim->getID());
4936 if (uninflatedBounds)
4937 *uninflatedBounds = mBoundsArray->getBounds(sim->getElementID());
4938 registerShapeInNphase(shapeCore);
4939}
4940
4941void Sc::Scene::removeShape(ShapeSim& shape, bool wakeOnLostTouch)
4942{

Callers 4

addShapesMethod · 0.45
addShapeToSceneMethod · 0.45
reinsertBroadPhaseMethod · 0.45
createSqBoundsMethod · 0.45

Calls 4

getElementIDMethod · 0.80
constructMethod · 0.45
getGeometryTypeMethod · 0.45
getBoundsMethod · 0.45

Tested by

no test coverage detected