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

Method isWritable

physx/source/physx/src/NpShape.cpp:741–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741bool NpShape::isWritable()
742{
743 // a shape is writable if it's exclusive, or it's not connected to any actors (which is true if the ref count is 1 and the user ref is not released.)
744 return isExclusiveFast() || (getRefCount()==1 && (mBaseFlags & PxBaseFlag::eIS_RELEASABLE));
745}
746
747void NpShape::incMeshRefCount()
748{

Callers

nothing calls this directly

Calls 2

isExclusiveFastFunction · 0.85
getRefCountFunction · 0.85

Tested by

no test coverage detected