Skip to content

Standardise float precision to avoid f32↔f64 conversions in physics pipeline #175

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

mediumMedium criticality issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions