cutechicken commited on
Commit
7523013
Β·
verified Β·
1 Parent(s): 285a1fd

Update index.html

Browse files
Files changed (1) hide show
  1. 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
- const pitchOffset = -pitchDegrees * 2;
 
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