mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-24 22:49:44 +01:00
tweaked camera params
This commit is contained in:
parent
748226f4ed
commit
c39f1f6d4c
@ -24,10 +24,10 @@ overlay.top.color=1, 1, 1, 1
|
|||||||
settings.show=false
|
settings.show=false
|
||||||
#
|
#
|
||||||
# Specifies the width of the application window in pixels.
|
# Specifies the width of the application window in pixels.
|
||||||
settings.resolution.width=1200
|
settings.resolution.width=1920
|
||||||
#
|
#
|
||||||
# Specifies the height of the application window in pixels.
|
# Specifies the height of the application window in pixels.
|
||||||
settings.resolution.height=800
|
settings.resolution.height=1080
|
||||||
#
|
#
|
||||||
# Determines whether the application runs in full-screen mode.
|
# Determines whether the application runs in full-screen mode.
|
||||||
settings.full-screen=false
|
settings.full-screen=false
|
||||||
|
@ -51,10 +51,10 @@ public class CameraController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Vector3f fieldIdToVector(int fieldID) {
|
private Vector3f fieldIdToVector(int fieldID) {
|
||||||
if (fieldID <= 10) return new Vector3f(4,height,0);
|
if (fieldID <= 10) return new Vector3f(30,height,0);
|
||||||
if (fieldID <= 20) return new Vector3f(0, height, 4);
|
if (fieldID <= 20) return new Vector3f(0, height, 30);
|
||||||
if (fieldID <= 30) return new Vector3f(-4, height, 0);
|
if (fieldID <= 30) return new Vector3f(-30, height, 0);
|
||||||
if (fieldID <= 40) return new Vector3f(0, height, -4);
|
if (fieldID <= 40) return new Vector3f(0, height, -30);
|
||||||
else throw new IllegalArgumentException();
|
else throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ public class TestWorld {
|
|||||||
app.getCamera(), // Die Kamera der App
|
app.getCamera(), // Die Kamera der App
|
||||||
Vector3f.ZERO, // Fokus auf die Mitte des Spielfelds
|
Vector3f.ZERO, // Fokus auf die Mitte des Spielfelds
|
||||||
4, // Radius des Kreises
|
4, // Radius des Kreises
|
||||||
2, // Höhe der Kamera
|
15, // Höhe der Kamera
|
||||||
0 // Geschwindigkeit der Bewegung
|
0 // Geschwindigkeit der Bewegung
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ public class TestWorld {
|
|||||||
*/
|
*/
|
||||||
private void createBoard() {
|
private void createBoard() {
|
||||||
// Erstelle ein Quadrat
|
// Erstelle ein Quadrat
|
||||||
Box box = new Box(1, 0.01f, 1); // Dünnes Quadrat für die Textur
|
Box box = new Box(10, 0.1f, 10); // Dünnes Quadrat für die Textur
|
||||||
Geometry geom = new Geometry("Board", box);
|
Geometry geom = new Geometry("Board", box);
|
||||||
|
|
||||||
// Setze das Material mit Textur
|
// Setze das Material mit Textur
|
||||||
|
Loading…
Reference in New Issue
Block a user