mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 08:34:23 +02:00
pose to bone transform
This commit is contained in:
parent
44e7671fdb
commit
03a309f3f7
3 changed files with 59 additions and 5 deletions
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue