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

Function removeActorT

physx/source/physx/src/NpScene.cpp:772–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770
771template<class T, class T2>
772static PX_FORCE_INLINE void removeActorT(T& actor, T2& scbActor, NpScene* scene, bool wakeOnLostTouch, bool removeFromAggregate)
773{
774 PX_ASSERT(NpActor::getAPIScene(actor) == scene);
775 const bool noSimBuffered = scbActor.getActorFlags().isSet(PxActorFlag::eDISABLE_SIMULATION);
776
777 if(removeFromAggregate)
778 {
779 PxU32 index = 0xffffffff;
780 NpAggregate* aggregate = actor.getNpAggregate(index);
781 if(aggregate)
782 {
783 aggregate->removeActorAndReinsert(actor, false);
784 PX_ASSERT(!actor.getAggregate());
785 }
786 }
787
788 actor.getShapeManager().teardownAllSceneQuery(scene->getSceneQueryManagerFast(), actor);
789 if(!noSimBuffered)
790 actor.removeConstraintsFromScene();
791
792 scene->getScene().removeActor(scbActor, wakeOnLostTouch, scbActor.isSimDisabledInternally());
793 scene->removeFromRigidActorList(actor.getRigidActorArrayIndex());
794}
795
796void NpScene::removeRigidStatic(NpRigidStatic& actor, bool wakeOnLostTouch, bool removeFromAggregate)
797{

Callers 2

removeRigidStaticMethod · 0.85
removeRigidDynamicMethod · 0.85

Calls 13

isSetMethod · 0.80
getNpAggregateMethod · 0.80
teardownAllSceneQueryMethod · 0.80
getShapeManagerMethod · 0.80
getActorFlagsMethod · 0.45
getAggregateMethod · 0.45
removeActorMethod · 0.45

Tested by

no test coverage detected