use bounding_volume::{BoundingSphere, HasBoundingVolume}; use shape::Capsule; use math::{Isometry, Point}; impl> HasBoundingVolume> for Capsule { #[inline] fn bounding_volume(&self, m: &M) -> BoundingSphere

{ let center = m.translate_point(&P::origin()); let radius = self.radius() + self.half_height(); BoundingSphere::new(center, radius) } }