Problem
There are frequent f32↔f64 conversions between the physics helper functions and velocity components, leading to repetitive casts and potential subtle precision mismatches.
Context
The physics implementation introduced in PR #174 uses f64 in the physics helper functions but f32 in the ECS velocity components, requiring conversions at multiple boundaries.
Proposed Solution
Consider standardising on one float precision throughout the physics pipeline to:
- Eliminate repetitive casting operations
- Reduce risk of precision loss or subtle numerical differences
- Improve code clarity and maintainability
References
Problem
There are frequent f32↔f64 conversions between the physics helper functions and velocity components, leading to repetitive casts and potential subtle precision mismatches.
Context
The physics implementation introduced in PR #174 uses f64 in the physics helper functions but f32 in the ECS velocity components, requiring conversions at multiple boundaries.
Proposed Solution
Consider standardising on one float precision throughout the physics pipeline to:
References