Crate collide[][src]

Expand description

This crate defines a generic collider trait, which is meant to be used by collision detection libraries.

You can define new colliders and implement the Collider trait, so this collider can be used with different collision detection libraries, which use this trait.

If you create a collision detection library, it can use different collider traits. A collision detection library might be generic over vector types, scalar types and dimensions, or specialized for specific vector types, scalar types and dimensions.

Structs

CollisionInfo

Information of a detected collision between colliders objects. The information is stored as elements of the specified vector space.

Traits

Collider

The collider trait, all colliders need to implement.