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

Function addRigidActorToArray

deps/physx/physx/source/physx/src/NpScene.cpp:320–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318// PT: make sure we always add to array and set the array index properly / at the same time
319template<class T>
320static PX_FORCE_INLINE void addRigidActorToArray(T& a, Ps::Array<PxRigidActor*>& rigidActors)
321{
322 a.setRigidActorArrayIndex(rigidActors.size());
323 rigidActors.pushBack(&a);
324}
325
326void NpScene::addActor(PxActor& actor, const PxBVHStructure* bvhStructure)
327{

Callers 2

NpScene.cppFile · 0.85
addActorTFunction · 0.85

Calls 3

sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected