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

Method createSqBounds

physx/source/simulationcontroller/src/ScShapeSim.cpp:474–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void ShapeSim::createSqBounds()
475{
476 if(mSqBoundsId!=PX_INVALID_U32)
477 return;
478
479 BodySim* bodySim = getBodySim();
480 PX_ASSERT(bodySim);
481
482 if(bodySim->usingSqKinematicTarget() || bodySim->isFrozen() || !bodySim->isActive() || bodySim->readInternalFlag(BodySim::BF_IS_COMPOUND_RIGID))
483 return;
484
485 if(mCore.getFlags() & PxShapeFlag::eSCENE_QUERY_SHAPE)
486 getScene().getSqBoundsManager().addShape(*this);
487}
488
489void ShapeSim::destroySqBounds()
490{

Callers

nothing calls this directly

Calls 4

isFrozenMethod · 0.80
isActiveMethod · 0.45
getFlagsMethod · 0.45
addShapeMethod · 0.45

Tested by

no test coverage detected