Update index.html
Browse files- index.html +3 -4
index.html
CHANGED
@@ -67,10 +67,9 @@
|
|
67 |
},
|
68 |
tick: function() {
|
69 |
this.el.object3D.position.add(this.velocity);
|
70 |
-
if (this.el.object3D.position.y <= -0.
|
71 |
-
this.el.object3D.position.y = -0.
|
72 |
-
this.velocity.set(0, 0, 0); // Stop movement when it hits the ground
|
73 |
-
}
|
74 |
}
|
75 |
});
|
76 |
|
|
|
67 |
},
|
68 |
tick: function() {
|
69 |
this.el.object3D.position.add(this.velocity);
|
70 |
+
if (this.el.object3D.position.y <= -0.25) { // Adjusted low point
|
71 |
+
this.el.object3D.position.y = -0.25; // New accumulate height
|
72 |
+
this.velocity.set(0, 0, 0); // Stop movement when it hits the new ground level
|
|
|
73 |
}
|
74 |
});
|
75 |
|