M2ModelAnimationExt

Trait M2ModelAnimationExt 

Source
pub trait M2ModelAnimationExt {
    // Required methods
    fn resolve_bone_animations(
        &self,
        data: &[u8],
    ) -> Result<Vec<ResolvedBoneAnimation>>;
    fn get_bind_pose(&self, data: &[u8]) -> Result<Vec<ResolvedBoneAnimation>>;
}
Expand description

Extension trait for M2Model to resolve animation data

Required Methods§

Source

fn resolve_bone_animations( &self, data: &[u8], ) -> Result<Vec<ResolvedBoneAnimation>>

Resolve all bone animation data from the model

Source

fn get_bind_pose(&self, data: &[u8]) -> Result<Vec<ResolvedBoneAnimation>>

Get bind pose for all bones (no animation, just rest position)

Implementors§