// Implements Shape.Inertia func (s *sphere) Inertia(mass float64, inertia *lin.V3) *lin.V3 { elem := 0.4 * mass * s.R * s.R inertia.SetS(elem, elem, elem) return inertia }
// Implements Shape.Inertia func (s *sphere) Inertia(mass float64, inertia *lin.V3) *lin.V3 { elem := 0.4 * mass * s.R * s.R inertia.SetS(elem, elem, elem) return inertia }