Update index.html
Browse files66 unmodified lines6768697071707172737466 unmodified lines }, tick: function() { this.el.object3D.position.add(this.velocity); if (this.el.object3D.position.y <= -0.5) { this.el.object3D.position.y = -0.5; // Accumulate on the ground if (this.el.object3D.position.y <= -1.0) { this.el.object3D.position.y = -1.0; // Accumulate on the ground this.velocity.set(0, 0, 0); // Stop movement when it hits the ground } }index.html+2-2