As a new user opening rapier, it can be overwhelming to see Real used everywhere, rapier uses heavily generic code, so thriving to limit indirection can help.
// This can be gated behind a feature flag for f64 or f32.
use f64 as Real;
pub fn takes_a_real(param: Real) {}
As a new user opening rapier, it can be overwhelming to see
Real
used everywhere, rapier uses heavily generic code, so thriving to limit indirection can help.Idea credit to Alice from bevy ; and https://www.reddit.com/r/rust/comments/1e0trid/comment/lcpjwh4.