bvh model is animating, now I have to retarget

This commit is contained in:
Brooks Palin
2024-01-02 14:33:08 -07:00
parent 744fd75192
commit 55673859e9
6 changed files with 850 additions and 1459 deletions
+11
View File
@@ -678,6 +678,17 @@ impl Bvh {
pub fn frame_cursor(&mut self) -> FrameCursor<'_> {
From::from(self)
}
pub fn get_joint(&self, index: usize) -> Option<Joint<'_>> {
if index < self.joints.len() {
Some(Joint {
index,
joints: &self.joints,
})
} else {
None
}
}
}
impl Default for Bvh {