Ver Fonte

Merge branch 'master' of https://github.com/Tankernn/Tankernn-3D-Game

Conflicts:
	src/main/java/eu/tankernn/game/Game.java
Tankernn há 8 anos atrás
pai
commit
d702edace3
1 ficheiros alterados com 2 adições e 2 exclusões
  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(1)));
+		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(1)));
+		entities.add(new Entity3D(loader.getModel(3), new Vector3f(10, 10, 10), new Vector3f(0, 0, 0), 1, loader.getBoundingBox(loader.getModel(3).getModel().id)));
 		
 		postProcessor = new PostProcessor(loader);
 		picker = new MousePicker(camera, camera.getProjectionMatrix(), entities, guiMaster.getGuis());