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

Method setFlag

physx/source/physx/src/NpShape.cpp:605–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605void NpShape::setFlag(PxShapeFlag::Enum flag, bool value)
606{
607 NP_WRITE_CHECK(getOwnerScene());
608 PX_CHECK_AND_RETURN(isWritable(), "PxShape::setFlag: shared shapes attached to actors are not writable.");
609 PX_SIMD_GUARD;
610
611 PxShapeFlags shapeFlags = mShape.getFlags();
612 shapeFlags = value ? shapeFlags | flag : shapeFlags & ~flag;
613
614 setFlagsInternal(shapeFlags);
615}
616
617void NpShape::setFlags(PxShapeFlags inFlags)
618{

Callers 15

NestedSceneMethod · 0.45
initMethod · 0.45
createChunkMethod · 0.45
addRepXToPxCollectionMethod · 0.45
createCharacterMethod · 0.45
createSnowManMethod · 0.45
setShapeFlagFunction · 0.45
loadTerrainMethod · 0.45
createDynamicActorsMethod · 0.45
createLandscapeMeshMethod · 0.45
createCharacterMethod · 0.45

Calls 1

getFlagsMethod · 0.45

Tested by

no test coverage detected