mirror of
https://github.com/bevyengine/bevy
synced 2025-01-04 09:18:54 +00:00
c05ba23703
## Objective A step towards `f64` `Transform`s (#1680). For now, I am rolling my own `Transform`. But in order to derive Reflect, I specifically need `DQuat` to be reflectable. ```rust #[derive(Component, Reflect, Copy, Clone, PartialEq, Debug)] #[reflect(Component, PartialEq)] pub struct Transform { pub translation: DVec3, pub rotation: DQuat, // error: the trait `bevy::prelude::Reflect` is not implemented for `DQuat` pub scale: DVec3, } ``` ## Solution I have added a `DQuat` impl for `Reflect` alongside the other glam impls. I've also added impls for `DMat3` and `DMat4` to match. |
||
---|---|---|
.. | ||
impls | ||
serde | ||
lib.rs | ||
list.rs | ||
map.rs | ||
path.rs | ||
reflect.rs | ||
struct_trait.rs | ||
tuple.rs | ||
tuple_struct.rs | ||
type_registry.rs | ||
type_uuid.rs |