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

Function removeFromSceneCheck

physx/source/physx/src/NpScene.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74///////////////////////////////////////////////////////////////////////////////
75
76static PX_FORCE_INLINE bool removeFromSceneCheck(NpScene* npScene, PxScene* scene, const char* name)
77{
78 if (scene == static_cast<PxScene*>(npScene))
79 {
80 return true;
81 }
82 else
83 {
84 Ps::getFoundation().error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__, "%s not assigned to scene or assigned to another scene. Call will be ignored!", name);
85 return false;
86 }
87}
88
89///////////////////////////////////////////////////////////////////////////////
90

Callers 4

NpScene.cppFile · 0.85
removeActorMethod · 0.85
removeArticulationMethod · 0.85
removeAggregateMethod · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected