[][src]Module oxygengine_physics_2d::prelude::ncollide2d

ncollide

ncollide is a 2 and 3-dimensional collision detection library written with the rust programming language.

As its name suggests, it is generic wrt the dimension: it works with both 2-dimensional and 3-dimensional shapes.

The official user guide is available here. The rustdoc documentation is available here.

Compilation

You will need the last stable build of the rust compiler and the official package manager: cargo.

Simply add the following to your Cargo.toml file:

This example is not tested
[dependencies]
ncollide2d = "0.23" # For 2D collision detection.
ncollide3d = "0.23" # For 3D collision detection.

Features

  • dynamic bounding volume tree based broad phase
  • ball vs. ball collision detection,
  • plane vs. any convex object collision detection.
  • collision detection between arbitrary convex objects
  • compound shapes
  • ray-casting
  • time of impact computation for objects without rotational movement (compound vs. compound is not yet implemented)

And various traits for collision detectors and broad phase collision detection.

Modules

bounding_volume

Bounding volumes.

interpolation

Interpolation of the motion of an object.

math

Compilation flags dependent aliases for mathematical types.

partitioning

Spatial partitioning tools.

pipeline

Persistent and time-coherent collision detection.

procedural

Procedural mesh generation.

query

Non-persistent geometric queries.

shape

Collision shapes supported by ncollide.

simba

Simba is a crate defining a set of trait for writing code that can be generic with regard to the number of lanes of the numeric input value. Those traits are implemented by f32, u32, i16, bool as well as SIMD types like f32x4, u32x8, i16x2, etc.

transformation

Transformation, simplification and decomposition of meshes.

utils

Various unsorted geometrical and logical operators.