cutechicken commited on
Commit
02c1d69
Β·
verified Β·
1 Parent(s): f77e71c

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +2 -2
game.js CHANGED
@@ -761,7 +761,7 @@ class EnemyFighter {
761
  this.mesh = result.scene;
762
  this.mesh.position.copy(this.position);
763
  this.mesh.scale.set(1.5, 1.5, 1.5);
764
- this.mesh.rotation.y = this.rotation.y + Math.PI;
765
 
766
  this.mesh.traverse((child) => {
767
  if (child.isMesh) {
@@ -1000,7 +1000,7 @@ class EnemyFighter {
1000
  // λ©”μ‹œ μ—…λ°μ΄νŠΈ
1001
  this.mesh.position.copy(this.position);
1002
  this.mesh.rotation.x = this.rotation.x;
1003
- this.mesh.rotation.y = this.rotation.y + Math.PI;
1004
  this.mesh.rotation.z = this.rotation.z;
1005
  }
1006
 
 
761
  this.mesh = result.scene;
762
  this.mesh.position.copy(this.position);
763
  this.mesh.scale.set(1.5, 1.5, 1.5);
764
+ this.mesh.rotation.y = Math.PI / 4; // ν”Œλ ˆμ΄μ–΄μ™€ λ™μΌν•œ 초기 νšŒμ „κ°’
765
 
766
  this.mesh.traverse((child) => {
767
  if (child.isMesh) {
 
1000
  // λ©”μ‹œ μ—…λ°μ΄νŠΈ
1001
  this.mesh.position.copy(this.position);
1002
  this.mesh.rotation.x = this.rotation.x;
1003
+ this.mesh.rotation.y = this.rotation.y + 3 * Math.PI / 2; // ν”Œλ ˆμ΄μ–΄μ™€ λ™μΌν•œ νšŒμ „ μ˜€ν”„μ…‹
1004
  this.mesh.rotation.z = this.rotation.z;
1005
  }
1006