MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / computeLocalInertia

Method computeLocalInertia

examples/Tutorial/Tutorial.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 btScalar m_radius;
42
43 void computeLocalInertia(b3Scalar mass, b3Vector3& localInertia)
44 {
45 btScalar elem = b3Scalar(0.4) * mass * m_radius * m_radius;
46 localInertia.setValue(elem, elem, elem);
47 }
48};
49
50struct LWBox

Callers 1

TutorialMethod · 0.80

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected