calculateLocalInertia method

Vec3 calculateLocalInertia(
  1. double mass,
  2. Vec3 target
)

Calculates the inertia in the local frame for this shape. @see http://en.wikipedia.org/wiki/List_of_moments_of_inertia

Implementation

Vec3 calculateLocalInertia(double mass, Vec3 target) {
  throw 'calculateLocalInertia() not implemented for shape type $type';
}