Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -2
index.html
CHANGED
|
@@ -434,7 +434,7 @@
|
|
| 434 |
<div class="hud-central-info" id="hudThrottleCentral">THR: 60%</div>
|
| 435 |
|
| 436 |
<!-- νΌμΉ λλ -->
|
| 437 |
-
<div class="hud-pitch-ladder" id="pitchLadder">
|
| 438 |
<!-- 10λλΉ 20ν½μ
κ°κ²© -->
|
| 439 |
<div class="pitch-line" style="top: calc(50% - 80px);">
|
| 440 |
<div class="pitch-line-bar"></div>
|
|
@@ -559,7 +559,8 @@
|
|
| 559 |
const pitchDegrees = this.fighter.rotation.x * (180 / Math.PI);
|
| 560 |
// 10λλΉ 20ν½μ
μ΄λ―λ‘, 1λλΉ 2ν½μ
|
| 561 |
// μμλ₯Ό κ³±ν΄μ νΌμΉκ° μλ‘ ν₯ν λ λλκ° μλλ‘ μ΄λνλλ‘ μμ
|
| 562 |
-
|
|
|
|
| 563 |
pitchLadder.style.transform = `translateY(${pitchOffset}px)`;
|
| 564 |
}
|
| 565 |
|
|
|
|
| 434 |
<div class="hud-central-info" id="hudThrottleCentral">THR: 60%</div>
|
| 435 |
|
| 436 |
<!-- νΌμΉ λλ -->
|
| 437 |
+
<div class="hud-pitch-ladder" id="pitchLadder" style="transform: translateY(-100px);">
|
| 438 |
<!-- 10λλΉ 20ν½μ
κ°κ²© -->
|
| 439 |
<div class="pitch-line" style="top: calc(50% - 80px);">
|
| 440 |
<div class="pitch-line-bar"></div>
|
|
|
|
| 559 |
const pitchDegrees = this.fighter.rotation.x * (180 / Math.PI);
|
| 560 |
// 10λλΉ 20ν½μ
μ΄λ―λ‘, 1λλΉ 2ν½μ
|
| 561 |
// μμλ₯Ό κ³±ν΄μ νΌμΉκ° μλ‘ ν₯ν λ λλκ° μλλ‘ μ΄λνλλ‘ μμ
|
| 562 |
+
// μ΄κΈ° μ€νμ
-200px κ³ λ €
|
| 563 |
+
const pitchOffset = -200 + (-pitchDegrees * 2);
|
| 564 |
pitchLadder.style.transform = `translateY(${pitchOffset}px)`;
|
| 565 |
}
|
| 566 |
|