calculateLocalInertia method

  1. @override
Vec3 calculateLocalInertia(
  1. num mass, [
  2. Vec3? target
])
override

Calculate the inertia of the box.

Implementation

@override
Vec3 calculateLocalInertia(num mass,[ Vec3? target]){
  target ??= Vec3();
  Box.calculateInertia(halfExtents, mass, target);
  return target;
}