Mouse speed is no longer affected by dt

This commit is contained in:
griffi-gh 2023-01-18 01:28:42 +01:00
parent ae488d090e
commit 716a5fe641

View file

@ -95,9 +95,9 @@ impl Controls {
] ]
} }
}; };
let rotation = [ let rotation = [ //Do mouse inputs need to be multiplied by dt?
dt * self.inputs.look_h * self.sensitivity, self.inputs.look_h * self.sensitivity * 0.01, //* dt
dt * self.inputs.look_v * self.sensitivity self.inputs.look_v * self.sensitivity * 0.01 //* dt
]; ];
//Only mouse related actions need to be reset //Only mouse related actions need to be reset
self.inputs.look_h = 0.; self.inputs.look_h = 0.;