This commit is contained in:
2026-01-25 16:15:21 +01:00
parent 1f2a5d830c
commit 83801a792f
3 changed files with 21 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ class Mino extends THREE.Object3D {
this.velocity.y += delta * GRAVITY
this.position.addScaledVector(this.velocity, delta)
this.rotateOnWorldAxis(this.rotationAngle, delta * this.angularVelocity)
if (Math.sqrt(this.position.x * this.position.x + this.position.z * this.position.z) > 40 || this.position.y < -50) {
if (this.position.y > 200 || Math.sqrt(this.position.x * this.position.x + this.position.z * this.position.z) > 50) {
this.dispose()
return true
} else {