camera init position
This commit is contained in:
parent
c8eb029987
commit
1b0f1c07d2
@ -14,7 +14,7 @@ class TetraControls extends OrbitControls {
|
||||
this.maxPolarAngle = 2.1
|
||||
this.minAzimuthAngle = 0.9 - Math.PI / 2
|
||||
this.maxAzimuthAngle = 2.14 - Math.PI / 2
|
||||
this.target.set(5, 7, 0)
|
||||
this.target.set(5, 7.5, 0)
|
||||
|
||||
this.addEventListener("start", () => domElement.style.cursor = "grabbing")
|
||||
this.addEventListener("end", () => domElement.style.cursor = "grab")
|
||||
|
@ -7,7 +7,7 @@ export class TetraScene extends THREE.Scene {
|
||||
super()
|
||||
|
||||
this.camera = new THREE.PerspectiveCamera(100, window.innerWidth / window.innerHeight, 0.1, 1000)
|
||||
this.camera.position.set(5, 3, 12)
|
||||
this.camera.position.set(5, 4, 12)
|
||||
|
||||
this.vortex = new Vortex(loadingManager)
|
||||
this.add(this.vortex)
|
||||
|
@ -271,7 +271,7 @@ class Tetromino extends THREE.Group {
|
||||
} else {
|
||||
scheduler.resetTimeout(this.onLockDown, this.lockDelay)
|
||||
this.locking = true
|
||||
this.parent?.ghost.visible = false
|
||||
this.parent.ghost.visible = false
|
||||
}
|
||||
return true
|
||||
} else if (translation == TRANSLATION.DOWN) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user