Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
50
struct LWBox
Callers
1
Tutorial
Method · 0.80
Calls
1
setValue
Method · 0.45
Tested by
no test coverage detected