ncollide3d-updated 0.37.0

2 and 3-dimensional collision detection library in Rust. Will be superseded by the parry3d crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate nalgebra as na;

use na::{Isometry3, Point3, Vector3};
use ncollide3d_updated as ncollide3d;
use ncollide3d::query::{Ray, RayCast};
use ncollide3d::shape::Cuboid;

fn main() {
    let cube = Cuboid::new(Vector3::new(1.0f32, 1.0, 1.0));
    let ray = Ray::new(Point3::new(0.0f32, 0.0, -1.0), Vector3::z());

    assert!(cube.intersects_ray(&Isometry3::identity(), &ray, std::f32::MAX));
}