|
@@ -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());
|