Spaces:
Running
Running
cutechicken
commited on
Commit
•
c0b9876
1
Parent(s):
161ebeb
Update game.js
Browse files
game.js
CHANGED
@@ -160,10 +160,10 @@ class TankPlayer {
|
|
160 |
|
161 |
async initialize(scene, loader) {
|
162 |
try {
|
163 |
-
const bodyResult = await loader.loadAsync('/models/
|
164 |
this.body = bodyResult.scene;
|
165 |
|
166 |
-
const turretResult = await loader.loadAsync('/models/
|
167 |
this.turret = turretResult.scene;
|
168 |
|
169 |
this.turretGroup.position.y = 0.2;
|
|
|
160 |
|
161 |
async initialize(scene, loader) {
|
162 |
try {
|
163 |
+
const bodyResult = await loader.loadAsync('/models/t90Body.glb');
|
164 |
this.body = bodyResult.scene;
|
165 |
|
166 |
+
const turretResult = await loader.loadAsync('/models/t90Turret.glb');
|
167 |
this.turret = turretResult.scene;
|
168 |
|
169 |
this.turretGroup.position.y = 0.2;
|