Browse Source

Update to match new boundingbox handling

Tankernn 8 years ago
parent
commit
0807cf2e99
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/eu/tankernn/game/Game.java

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

@@ -59,9 +59,9 @@ public class Game extends TankernnGame3D {
 			e.printStackTrace();
 		}
 		
-		entities.add(new Entity3D(loader.getModel(2), new Vector3f(10, 10, 10), new Vector3f(0, 0, 0), 1, loader.getBoundingBox(2)));
+		entities.add(new Entity3D(loader.getModel(2), new Vector3f(10, 10, 10), new Vector3f(0, 0, 0), 1, loader.getBoundingBox(loader.getModel(2).getModel().id)));
 		
-		entities.add(new Entity3D(loader.getModel(3), new Vector3f(10, 10, 10), new Vector3f(0, 0, 0), 1, loader.getBoundingBox(2)));
+		entities.add(new Entity3D(loader.getModel(3), new Vector3f(10, 10, 10), new Vector3f(0, 0, 0), 1, loader.getBoundingBox(loader.getModel(2).getModel().id)));
 		
 		postProcessor = new PostProcessor(loader);
 		picker = new MousePicker(camera, camera.getProjectionMatrix(), entities, guiMaster.getGuis());