Open Occuros opened 1 year ago
I think another way of representing this is to have something like:
impl_external_schematic! {
#[schematic(from = TransformInput)]
struct Transform {}
#[derive(Reflect)]
struct TransformInput {
translation: Vec3,
rotation: RotationInput,
scale: Vec3,
}
enum RotationInput {
Quat(Quat),
Euler(Vec3)
}
}
Current Issue:
Rotations in transformations can only be defined using quaternions (
Quat
). While this is suitable for engine representation, it is less than ideal for human readability and ease of input.Desired Solution:
Introduce a custom input type called
ProtoTransform
that utilizes an enum to specify the rotation type. This would be adopted by all existing custom implementations.