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

Method createRigidStatic

physx/source/physx/src/NpFactory.cpp:563–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561///////////////////////////////////////////////////////////////////////////////
562
563PxRigidStatic* NpFactory::createRigidStatic(const PxTransform& pose)
564{
565 PX_CHECK_AND_RETURN_NULL(pose.isValid(), "pose is not valid. createRigidStatic returns NULL.");
566
567 NpRigidStatic* npActor;
568
569 {
570 Ps::Mutex::ScopedLock lock(mRigidStaticPoolLock);
571 npActor = mRigidStaticPool.construct(pose);
572 }
573
574 addRigidStatic(npActor);
575 return npActor;
576}
577
578void NpFactory::releaseRigidStaticToPool(NpRigidStatic& rigidStatic)
579{

Callers 15

initSceneFunction · 0.45
initPhysicsFunction · 0.45
initPhysicsFunction · 0.45
initPhysicsFunction · 0.45
NestedSceneMethod · 0.45
createGroudPlaneFunction · 0.45
addWindMillsMethod · 0.45
addRepXToPxCollectionMethod · 0.45
createRigidActorFunction · 0.45
createHeightFieldMethod · 0.45
buildIglooTriMeshMethod · 0.45

Calls 2

isValidMethod · 0.45
constructMethod · 0.45

Tested by

no test coverage detected