MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / setLinearDamping

Method setLinearDamping

deps/physx/physx/source/physx/src/NpRigidDynamic.cpp:190–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189
190void NpRigidDynamic::setLinearDamping(PxReal linearDamping)
191{
192 NP_WRITE_CHECK(NpActor::getOwnerScene(*this));
193 PX_CHECK_AND_RETURN(PxIsFinite(linearDamping), "PxRigidDynamic::setLinearDamping: invalid float");
194 PX_CHECK_AND_RETURN(linearDamping >=0, "PxRigidDynamic::setLinearDamping: The linear damping must be nonnegative!");
195
196 getScbBodyFast().setLinearDamping(linearDamping);
197}
198
199
200PxReal NpRigidDynamic::getLinearDamping() const

Callers 8

createScissorLiftFunction · 0.45
createLongChainFunction · 0.45
buildBridgeFunction · 0.45
createSubmarineMethod · 0.45
createSeamineMethod · 0.45
explodeMethod · 0.45
PxCloneDynamicFunction · 0.45

Calls 1

PxIsFiniteFunction · 0.85

Tested by

no test coverage detected