Collide: Ray
Ray type for the collide ecosystem. Dimension-generic (2D/3D/N-D).
Defines a ray (origin + direction) with sphere intersection support. Shape crates implement Collider<Ray> for their types via the ray feature flag.
Usage
use Ray;
let ray = new;
if let Some = ray.intersect_sphere
Ray Support in Shape Crates
Enable ray feature on shape crates to get Collider<Ray> implementations:
= { = "...", = ["ray"] }
= { = "...", = ["ray"] }
= { = "...", = ["ray"] }