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

Method addStatic

physx/source/simulationcontroller/src/ScScene.cpp:4822–4833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4820}
4821
4822void Sc::Scene::addStatic(StaticCore& ro, void*const *shapes, PxU32 nbShapes, size_t shapePtrOffset, PxBounds3* uninflatedBounds)
4823{
4824 PX_ASSERT(ro.getActorCoreType() == PxActorType::eRIGID_STATIC);
4825
4826 // sim objects do all the necessary work of adding themselves to broad phase,
4827 // activation, registering with the interaction system, etc
4828
4829 StaticSim* sim = mStaticSimPool->construct(*this, ro);
4830
4831 mNbRigidStatics++;
4832 addShapes(shapes, nbShapes, shapePtrOffset, *sim, uninflatedBounds);
4833}
4834
4835void Sc::Scene::prefetchForRemove(const StaticCore& core) const
4836{

Callers 3

NpScene.cppFile · 0.80
switchRigidFromNoSimMethod · 0.80
addOrRemoveRigidObjectFunction · 0.80

Calls 4

allocateAndPrefetchMethod · 0.80
prefetchFunction · 0.50
constructMethod · 0.45
getCountMethod · 0.45

Tested by

no test coverage detected