use super::*;
#[derive(Clone, Copy, Data, Debug, New, PartialEq)]
pub struct Keyframe3D {
#[get(type(copy))]
pub(crate) time_secs: f32,
#[get(type(copy))]
pub(crate) transform: Transform3D,
}
#[derive(Clone, Data, Debug, PartialEq)]
pub struct SkeletonJoint3D {
pub(crate) name: String,
#[get(skip)]
pub(crate) parent: Option<usize>,
#[get(type(copy))]
pub(crate) rest_transform: Transform3D,
}
#[derive(Clone, Data, Debug, PartialEq)]
pub struct JointTrack3D {
#[get(type(copy))]
pub(crate) joint_index: usize,
pub(crate) keyframes: Vec<Keyframe3D>,
}
#[derive(Clone, Data, Debug, PartialEq)]
pub struct AnimationClip3D {
pub(crate) name: String,
#[get(type(copy))]
pub(crate) duration_secs: f32,
#[get(type(copy))]
pub(crate) looping: bool,
pub(crate) tracks: Vec<JointTrack3D>,
}
#[derive(Clone, Data, Debug, Default, PartialEq)]
pub struct SkeletonRig3D {
pub(crate) joints: Vec<SkeletonJoint3D>,
}