AtomECS icon indicating copy to clipboard operation
AtomECS copied to clipboard

Support for `uom`

Open ElliotB256 opened this issue 4 years ago • 2 comments

I would like to use the uom crate to define quantities in atomecs. https://github.com/iliekturtles/uom

Advantages:

  • Compile-time dimensional analysis
  • No runtime overhead
  • Convenience to define in whatever unit is appropriate at the time
  • No incorrect conversions

I had tried previously but was not able to because of the incompatibility of Vector3<> from nalgebra with uom. There have been a few updates to the package since then and it is worth revisiting.

ElliotB256 avatar Apr 27 '21 11:04 ElliotB256

Switching to another ECS such as legion or bevy may solve this implicitly, as both define storage types different from specs.

ElliotB256 avatar Jan 13 '22 13:01 ElliotB256

#3

ElliotB256 avatar Jan 13 '22 13:01 ElliotB256