Spaces:
Running
Running
cutechicken
commited on
Commit
β’
b32bcd4
1
Parent(s):
af4bb6b
Update game.js
Browse files
game.js
CHANGED
@@ -682,7 +682,7 @@ class Enemy {
|
|
682 |
|
683 |
// νμ¬ νμ κ° λΆλλ½κ² μ‘°μ - μ ν μλλ₯Ό λλ¦¬κ² νκΈ° μν΄ μ‘°μ
|
684 |
const rotationDiff = this.aiState.targetRotation - this.aiState.currentRotation;
|
685 |
-
let rotationStep = Math.sign(rotationDiff) * Math.min(Math.abs(rotationDiff), 0.
|
686 |
this.aiState.currentRotation += rotationStep;
|
687 |
|
688 |
// λ©μ νμ μ μ©
|
|
|
682 |
|
683 |
// νμ¬ νμ κ° λΆλλ½κ² μ‘°μ - μ ν μλλ₯Ό λλ¦¬κ² νκΈ° μν΄ μ‘°μ
|
684 |
const rotationDiff = this.aiState.targetRotation - this.aiState.currentRotation;
|
685 |
+
let rotationStep = Math.sign(rotationDiff) * Math.min(Math.abs(rotationDiff), 0.05); // κΈ°μ‘΄ 0.02μμ 0.05λ‘ μμ
|
686 |
this.aiState.currentRotation += rotationStep;
|
687 |
|
688 |
// λ©μ νμ μ μ©
|