Ver Fonte

Fix getting of boundingBox for player

Tankernn há 8 anos atrás
pai
commit
ca4fdaa97a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main/java/eu/tankernn/game/Game.java

+ 1 - 1
src/main/java/eu/tankernn/game/Game.java

@@ -38,7 +38,7 @@ public class Game extends TankernnGame3D {
 			e.printStackTrace();
 		}
 		
-		player = new Player(loader.getModel(0), new Vector3f(0, 0, 0), new Vector3f(0, 0, 0), 1, loader.getBoundingBox(0), terrainPack);
+		player = new Player(loader.getModel(0), new Vector3f(0, 0, 0), new Vector3f(0, 0, 0), 1, loader.getBoundingBox(loader.getModel(0).getModel().id), terrainPack);
 		
 		entities.add(player);
 		camera = new PlayerCamera(player, terrainPack);