MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / add

Method add

deps/physx/physx/source/physx/src/buffering/ScbScene.cpp:379–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377///////////////////////////////////////////////////////////////////////////////
378template<typename T>
379void Scb::Scene::add(T& v, ObjectTracker &tracker, PxBounds3* uninflatedBounds, const Gu::BVHStructure* bvhStructure)
380{
381 v.setScbScene(this);
382
383 if (!mIsBuffering)
384 {
385 v.resetControl(ControlState::eIN_SCENE);
386 ScSceneFns<T>::insert(mScene, v, uninflatedBounds, bvhStructure);
387#if PX_SUPPORT_PVD
388 if(mScenePvdClient.checkPvdDebugFlag())
389 PvdFns<T>::createInstance(*this, mScenePvdClient, &v);
390#endif
391 }
392 else
393 tracker.scheduleForInsert(v);
394}
395
396template<typename T>
397void Scb::Scene::remove(T& v, ObjectTracker &tracker, bool wakeOnLostTouch)

Callers 2

attachShapeMethod · 0.45
fileToObjectMethod · 0.45

Calls 4

insertFunction · 0.85
createInstanceFunction · 0.85
checkPvdDebugFlagMethod · 0.80
scheduleForInsertMethod · 0.80

Tested by

no test coverage detected