From 5250a0178fafd5e6f6ce5fb9f0c64741a13c4e5c Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 10 Jan 2024 19:52:38 -0800 Subject: [PATCH] how --- src/load_bsp.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/load_bsp.rs b/src/load_bsp.rs index 3c754a4..67c628c 100644 --- a/src/load_bsp.rs +++ b/src/load_bsp.rs @@ -199,10 +199,13 @@ pub fn generate_indexed_models(input:&mut R)->Res transform:crate::integer::Planar64Affine3::new( crate::integer::Planar64Mat3::try_from( glam::Mat3A::from_diagonal(glam::Vec3::splat(placement.scale)) - *glam::Mat3A::from_quat( - //TODO: does rotation need valve transform? - glam::Quat::from_xyzw(placement.rotation.v.x,placement.rotation.v.y,placement.rotation.v.z,placement.rotation.s), - ) + //TODO: figure this out + *glam::Mat3A::from_quat(glam::Quat::from_xyzw( + placement.rotation.v.x,//b + placement.rotation.v.y,//c + placement.rotation.v.z,//d + placement.rotation.s,//a + )) ).unwrap(), valve_transform(<[f32;3]>::from(placement.origin)), ),