Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -559,8 +559,8 @@
|
|
559 |
const pitchDegrees = this.fighter.rotation.x * (180 / Math.PI);
|
560 |
// 10λλΉ 20ν½μ
μ΄λ―λ‘, 1λλΉ 2ν½μ
|
561 |
// μμλ₯Ό κ³±ν΄μ νΌμΉκ° μλ‘ ν₯ν λ λλκ° μλλ‘ μ΄λνλλ‘ μμ
|
562 |
-
// μ΄κΈ° μ€νμ
|
563 |
-
const pitchOffset =
|
564 |
pitchLadder.style.transform = `translateY(${pitchOffset}px)`;
|
565 |
}
|
566 |
|
|
|
559 |
const pitchDegrees = this.fighter.rotation.x * (180 / Math.PI);
|
560 |
// 10λλΉ 20ν½μ
μ΄λ―λ‘, 1λλΉ 2ν½μ
|
561 |
// μμλ₯Ό κ³±ν΄μ νΌμΉκ° μλ‘ ν₯ν λ λλκ° μλλ‘ μ΄λνλλ‘ μμ
|
562 |
+
// μ΄κΈ° μ€νμ
-100px κ³ λ €
|
563 |
+
const pitchOffset = -100 + (-pitchDegrees * 2);
|
564 |
pitchLadder.style.transform = `translateY(${pitchOffset}px)`;
|
565 |
}
|
566 |
|