MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / setMass

Method setMass

Simulation/RigidBody.h:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 }
276
277 FORCE_INLINE void setMass(const Real &value)
278 {
279 m_mass = value;
280 if (m_mass != 0.0)
281 m_invMass = static_cast<Real>(1.0) / m_mass;
282 else
283 m_invMass = 0.0;
284 }
285
286 FORCE_INLINE const Real &getInvMass() const
287 {

Callers 15

buildModelFunction · 0.80
buildModelFunction · 0.80
createMeshFunction · 0.80
createMeshFunction · 0.80
createModelFunction · 0.80
buildModelFunction · 0.80
buildModelFunction · 0.80
createRigidBodyModelFunction · 0.80
addRegularTetModelMethod · 0.80
createRodFunction · 0.80
createMeshFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected