# Inertia at central mass on a box?

This topic is 4565 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

So I've tried to learn physics :) So I've been reading some articles by Chris Hecker, now I've been reading about angular stuff. And now I want to calculate the inertia of a 2d box at it's central mass, the article says "I^A (Around A, which is CM now) is the sum of squared distances from point A to each other point in the body, and each squared distance is scaled by the mass of each point" Hmm... so I was thinking doing something like using the four points that build up the box. But then in this example by Eric Catto he does:
I = mass * (width.x * width.x + width.y * width.y) / 12.0f;
Can anyone explain why? Thanks /MindWipe

##### Share on other sites
With point masses you take the sum to calculate the moment of inertia. For a rectangle, the sum over each point turns into an integral over the body area. If you evaluate this integral it will give the formula from Erin Catto.

##### Share on other sites
There's a list here of results.

##### Share on other sites
Ah yes, that makes perfect sense! Thanks alot both of you!

rating++ :)

/MindWipe

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

(You must login to your GameDev.net account.)

• 11
• 15
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
634151
• Total Posts
3015827
×