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

Method NpShape

physx/source/physx/src/NpShape.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50NpShape::NpShape(const PxGeometry& geometry, PxShapeFlags shapeFlags, const PxU16* materialIndices, PxU16 materialCount, bool isExclusive)
51: PxShape (PxConcreteType::eSHAPE, PxBaseFlag::eOWNS_MEMORY | PxBaseFlag::eIS_RELEASABLE)
52, mActor (NULL)
53, mShape (geometry, shapeFlags, materialIndices, materialCount, isExclusive)
54, mName (NULL)
55, mExclusiveAndActorCount (isExclusive ? EXCLUSIVE_MASK : 0)
56{
57 PX_ASSERT(mShape.getScShape().getPxShape() == static_cast<PxShape*>(this));
58
59 PxShape::userData = NULL;
60
61 incMeshRefCount();
62}
63
64NpShape::~NpShape()
65{

Callers

nothing calls this directly

Calls 1

getPxShapeMethod · 0.80

Tested by

no test coverage detected