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

Function removeFromSceneCheck

deps/physx/physx/source/physx/src/NpScene.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected