We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8081055 commit 8567f6eCopy full SHA for 8567f6e
public/mouseKeyboardControl.mjs
@@ -128,7 +128,9 @@ function positionChanged() {
128
* Call this once per frame when using non-VR.
129
* @param {number} dt Seconds elapsed since the last control update.
130
*/
131
-function updateControls(dt) {
+function updateControls(dt) {
132
+ // Enforce a maximum time step to avoid falling through floor when out of focus.
133
+ dt = Math.min(dt, 0.1);
134
135
// Get the horizontal rotation of the orbit perspective, between -PI and +PI.
136
const angle = orbit.getAzimuthalAngle();
0 commit comments