Skip to content

Instantly share code, notes, and snippets.

@XMPPwocky
Created November 20, 2014 19:35
Show Gist options
  • Save XMPPwocky/a868b36fe8eb64079b31 to your computer and use it in GitHub Desktop.
Save XMPPwocky/a868b36fe8eb64079b31 to your computer and use it in GitHub Desktop.
let b = ncollide::shape::Ball::new(0.5f32);
let m1 = na::Iso3::new(na::zero(), na::zero());
let m2 = na::Iso3::new(na::Vec3::new(0.0, 10.0, 0.0), na::zero());
let cast = ncollide::geometry::time_of_impact_internal::shape_against_shape(&m1, &na::Vec3::new(0.0, 10.0, 0.0), &b,
&m2, &na::zero(), &b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment