Home Rumble Youtube Twitter/X Kofi Contact / Crypto

 

void inertiaSphere(mat3* mat, float mass, float radius)
Sets mat to the moment of inertia for a sphere of the given radius and mass with constant density.
void inertiaBox(mat3* mat, float mass, vec3 dims)
Sets mat to the moment of inertia for an axis-aligned box of the given dimensions and mass with constant density.