Crate collision2d

Source
Expand description

A simple 2D collision detection library supporting simple primitive shapes only, and that is suitable for development on no_std targets.

§Features

  • std: (enabled by default) enable use of the standard library. Must be disabled for no_std crates.
  • aabb: (enabled by default) Axis-Aligned Bounding Box (Aabb) shape
  • libm: Use libm for math. This is notably necessary for some features to work on no_std

Structs§

Aabbaabb
Axis-Aligned Bounding Box

Traits§

Collides
Trait implemented by shapes that can be checked for collisions with shapes of type S
Penetration
Trait implemented by shapes that can check for penetration into other shapes of type S