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

Function addActorT

deps/physx/physx/source/physx/src/NpScene.cpp:740–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738
739template<class T, class T2>
740static PX_FORCE_INLINE void addActorT(T& actor, T2& scbActor, Ps::Array<PxRigidActor*>& actors, NpScene* scene, const Gu::BVHStructure* bvhStructure, bool hasPrunerStructure)
741{
742 const bool noSimBuffered = scbActor.getActorFlags().isSet(PxActorFlag::eDISABLE_SIMULATION);
743
744 PxBounds3 bounds[8+1]; // PT: +1 for safe reads in addPrunerData/inflateBounds
745 const bool canReuseBounds = !noSimBuffered && !scene->getScene().isPhysicsBuffering() && actor.getShapeManager().getNbShapes()<=8;
746 PxBounds3* uninflatedBounds = canReuseBounds ? bounds : NULL;
747
748 scene->getScene().addActor(scbActor, noSimBuffered, uninflatedBounds, bvhStructure);
749
750 actor.getShapeManager().setupAllSceneQuery(scene, actor, hasPrunerStructure, uninflatedBounds, bvhStructure);
751 if(!noSimBuffered)
752 actor.addConstraintsToScene();
753 addRigidActorToArray(actor, actors);
754}
755
756void NpScene::addRigidStatic(NpRigidStatic& actor, const Gu::BVHStructure* bvhStructure, bool hasPrunerStructure)
757{

Callers 2

addRigidStaticMethod · 0.85
addRigidDynamicMethod · 0.85

Calls 9

addRigidActorToArrayFunction · 0.85
getShapeManagerMethod · 0.80
setupAllSceneQueryMethod · 0.80
addConstraintsToSceneMethod · 0.80
isSetMethod · 0.45
getActorFlagsMethod · 0.45
getSceneMethod · 0.45
getNbShapesMethod · 0.45
addActorMethod · 0.45

Tested by

no test coverage detected