Normand Briere
2019-08-22 6a823ffbfcda4c843f46e02e83c869d5bc323e25
Camera.java
....@@ -3,7 +3,6 @@
33 // Decompiler options: packimports(3)
44 // Source File Name: Camera.java
55
6
-
76 class Camera extends Object3D
87 {
98 static final long serialVersionUID = 4754289789178680517L;
....@@ -21,7 +20,7 @@
2120 //<-2.2,0.7,-2> and pointed it at <-0.61,0.3,-0.6>
2221 // location = LA.newVector(2,0.7,-2);
2322 // lookAt = new cVector(0.6,0.3,-0.6);
24
- location = LA.newVector(3,2,2);
23
+ location = LA.newVector(6,2,4);
2524 lookAt = new cVector(0.0,0.5,0);
2625 direction = new cVector();
2726 toParent = LA.newMatrix();
....@@ -53,7 +52,7 @@
5352 perspective = true;
5453 break;
5554 case 1: // '\001'
56
- location = LA.newVector(0, 0, 4);
55
+ location = LA.newVector(4, 0, 0);
5756 perspective = false;
5857 break;
5958 case 2: // '\002'
....@@ -64,7 +63,7 @@
6463 //LA.matXRotate(fromScreen, LA.toRadians(90));
6564 break;
6665 case 3: // '\003'
67
- location = LA.newVector(4, 0, 0);
66
+ location = LA.newVector(0, 0, 4);
6867 //LA.matZRotate(toScreen, LA.toRadians(-90));
6968 //LA.matXRotate(toScreen, LA.toRadians(-90));
7069 //LA.matXRotate(fromScreen, LA.toRadians(90));
....@@ -72,7 +71,7 @@
7271 perspective = false;
7372 break;
7473 case 4: // Default light
75
- location = LA.newVector(10, 30, 20);
74
+ location = LA.newVector(-5, 20, 10);
7675 perspective = false;
7776 break;
7877 }
....@@ -320,7 +319,7 @@
320319 location.set(lookAt);
321320 lookAt.set(cStatic.point1);
322321
323
- computeTransform();
322
+ //computeTransform();
324323 }
325324
326325 //synchronized // june 2014