bevy/crates/bevy_reflect/src
Christian Hughes c05ba23703 Add Reflect support for DMat3, DMat4, DQuat (#4128)
## 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.
2022-03-08 00:14:21 +00:00
..
impls Add Reflect support for DMat3, DMat4, DQuat (#4128) 2022-03-08 00:14:21 +00:00
serde Avoid some format! into immediate format! (#2913) 2021-10-06 18:34:33 +00:00
lib.rs Add FromReflect trait to convert dynamic types to concrete types (#1395) 2021-12-26 18:49:01 +00:00
list.rs document more of bevy_reflect (#3655) 2022-01-14 19:09:44 +00:00
map.rs Proper prehashing (#3963) 2022-02-18 03:26:01 +00:00
path.rs document more of bevy_reflect (#3655) 2022-01-14 19:09:44 +00:00
reflect.rs document more of bevy_reflect (#3655) 2022-01-14 19:09:44 +00:00
struct_trait.rs Proper prehashing (#3963) 2022-02-18 03:26:01 +00:00
tuple.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
tuple_struct.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
type_registry.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
type_uuid.rs document more of bevy_reflect (#3655) 2022-01-14 19:09:44 +00:00