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

Method onActorAttach

physx/source/physx/src/NpShape.cpp:638–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void NpShape::onActorAttach(PxRigidActor& actor)
639{
640 incRefCount();
641 if(isExclusiveFast())
642 mActor = &actor;
643 Ps::atomicIncrement(&mExclusiveAndActorCount);
644}
645
646void NpShape::onActorDetach()
647{

Callers 2

resolveReferencesMethod · 0.80
attachShapeMethod · 0.80

Calls 3

incRefCountFunction · 0.85
isExclusiveFastFunction · 0.85
atomicIncrementFunction · 0.50

Tested by

no test coverage detected