Spaces:
Running
Running
Update game.js
Browse files
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 =
|
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 |
|