pose to bone transform

This commit is contained in:
Robin Appelman 2023-12-30 18:44:40 +01:00
commit 03a309f3f7
3 changed files with 59 additions and 5 deletions

View file

@ -1,3 +1,4 @@
use cgmath::{Matrix4, Quaternion};
use std::env::args;
use std::fs;
use std::path::PathBuf;
@ -22,7 +23,10 @@ fn main() -> Result<(), vmdl::ModelError> {
for bone in mdl.bones {
println!(
"{}: from {} at\n\t{:?}\n\t{:?}",
bone.name, bone.parent, bone.rot, bone.contents
bone.name,
bone.parent,
bone.quaternion,
bone.pose_to_bone.rotation()
);
}