moment of inertia issues

Please don't post Bullet support questions here, use the above forums instead.
njdyck
Posts: 1
Joined: Wed Dec 10, 2008 10:08 pm

moment of inertia issues

Post by njdyck »

Hi,

I'm trying to calculate the moment of inertia (moi) about the center of mass of a triangle (z-axis) in any orientation. I don't want to waste memory trying to find the base and then the altiltude from the top point etc.. as described in the link:

http://lab.polygonal.de/2006/08/17/calc ... x-polygon/
the function is going to be expensive enough as it is but this is the best info I've found so far.

What I'm actually trying to do is write a function that will calculate the moi of any polygon.
Assume I already have the area, and center of mass (all objects have a density of 1 mass unit/ volume unit).

Can someone help a brotha out?