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

Method setFlags

physx/source/physx/src/NpConstraint.cpp:219–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void NpConstraint::setFlags(PxConstraintFlags flags)
220{
221 NP_WRITE_CHECK(getNpScene());
222 // check for eBROKEN which is a read only flag
223 PX_CHECK_AND_RETURN(!(flags & PxConstraintFlag::eBROKEN), "PxConstraintFlag::eBROKEN is a read only flag");
224
225 PX_CHECK_AND_RETURN(!(flags & PxConstraintFlag::eGPU_COMPATIBLE), "PxConstraintFlag::eGPU_COMPATIBLE is an internal flag and is illegal to set via the API");
226
227 PX_SIMD_GUARD;
228
229 mConstraint.setFlags(flags);
230}
231
232PxConstraintFlags NpConstraint::getFlags() const
233{

Callers 2

NpConstraintMethod · 0.45
setFlagMethod · 0.45

Calls 1

getNpSceneFunction · 0.85

Tested by

no test coverage detected