From 6bb9db739ccd245d3e17354f7233ca01b6890a95 Mon Sep 17 00:00:00 2001
From: Quaternions <krakow20@gmail.com>
Date: Fri, 13 Oct 2023 23:16:28 -0700
Subject: [PATCH] mouse does not need to be initialized with -1 time

---
 src/physics.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/physics.rs b/src/physics.rs
index bab5533..6c0fdc3 100644
--- a/src/physics.rs
+++ b/src/physics.rs
@@ -160,7 +160,7 @@ impl PhysicsCamera {
 		Self{
 			offset,
 			sensitivity:Ratio64Vec2::ONE*200_000,
-			mouse:MouseState{pos:glam::IVec2::ZERO,time:-Time::ONE_NANOSECOND},//escape initialization hell divide by zero
+			mouse:MouseState::default(),//t=0 does not cause divide by zero because it's immediately replaced
 			clamped_mouse_pos:glam::IVec2::ZERO,
 			angle_pitch_lower_limit:-Angle32::FRAC_PI_2,
 			angle_pitch_upper_limit:Angle32::FRAC_PI_2,