mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-28 08:58:07 +00:00
bvh model is animating, now I have to retarget
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user