From 94fc3e7377624e49fc9af7af91a6ca32b03cb7ae Mon Sep 17 00:00:00 2001 From: Franklin Date: Fri, 17 Nov 2023 11:27:08 -0400 Subject: [PATCH] At this point, movement system works well, everything else as well except for gun placement. The mechanics work perfectly, but with the new models and hand systems, everything is out of scale, position, rotation. time to work on blender. --- src/logic/core/guns/firearm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logic/core/guns/firearm.rs b/src/logic/core/guns/firearm.rs index 0788fe5..6bfa1ae 100644 --- a/src/logic/core/guns/firearm.rs +++ b/src/logic/core/guns/firearm.rs @@ -45,7 +45,7 @@ impl Firearm { ]), }, - final_aimed_rotation: Quat::from_rotation_x(0.026), + final_aimed_rotation: Quat::default(),//Quat::from_rotation_x(0.026), final_rotation: Quat::default(), final_aimed_position: Vec3 { // x: -0.003, @@ -55,11 +55,11 @@ impl Firearm { y: -0.35, z: -1.6, }, - final_position: Vec3 { + final_position: Vec3::ZERO, /*Vec3 { x: 0.6, y: -0.45, z: -2.7, - }, + },*/ scale_factor: 1.0, asset_path: String::from("weapons/m4a1_rifle.glb"), firearm_type: FirearmType::Primary,