You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to integrate a fixed point library to ease deterministic computations, but I face a big wall since I16F16 does not implement Reflect and the implementation is far from trivial
What would be the course of action to be able to use such structs easily with register_rollback_type?
use fixed::{traits::Fixed, types::I16F16};#[derive(Default)]pubstructVelocity{pubx:I16F16,puby:I16F16,}
Throws
.register_rollback_type::<Vector2D>();
^^^^^^^^^^^^^^^^^^^^^^ the trait `bevy::prelude::Reflect` is not implemented for `Velocity`
The text was updated successfully, but these errors were encountered:
I wanted to integrate a fixed point library to ease deterministic computations, but I face a big wall since
I16F16
does not implementReflect
and the implementation is far from trivialWhat would be the course of action to be able to use such structs easily with
register_rollback_type
?Throws
The text was updated successfully, but these errors were encountered: