use num::Signed; use na; use na::{Rotate, Transform}; use support_map::SupportMap; use shape::Capsule; use math::{Point, Vector}; impl
SupportMap
for Capsule< + Rotate ();
if local_dir[1].is_negative() {
pres[1] = -self.half_height()
}
else {
pres[1] = self.half_height()
}
m.transform(&(pres + na::normalize(&local_dir) * self.radius()))
}
}