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§
Sourcefn resolve_bone_animations(
&self,
data: &[u8],
) -> Result<Vec<ResolvedBoneAnimation>>
fn resolve_bone_animations( &self, data: &[u8], ) -> Result<Vec<ResolvedBoneAnimation>>
Resolve all bone animation data from the model
Sourcefn get_bind_pose(&self, data: &[u8]) -> Result<Vec<ResolvedBoneAnimation>>
fn get_bind_pose(&self, data: &[u8]) -> Result<Vec<ResolvedBoneAnimation>>
Get bind pose for all bones (no animation, just rest position)