Normand Briere
2019-08-18 66aca73cce89e4b4d7521862760edf4b0888bc38
Camera.java
....@@ -20,7 +20,7 @@
2020 //<-2.2,0.7,-2> and pointed it at <-0.61,0.3,-0.6>
2121 // location = LA.newVector(2,0.7,-2);
2222 // lookAt = new cVector(0.6,0.3,-0.6);
23
- location = LA.newVector(6,4,4);
23
+ location = LA.newVector(6,2,4);
2424 lookAt = new cVector(0.0,0.5,0);
2525 direction = new cVector();
2626 toParent = LA.newMatrix();
....@@ -52,7 +52,7 @@
5252 perspective = true;
5353 break;
5454 case 1: // '\001'
55
- location = LA.newVector(0, 0, 4);
55
+ location = LA.newVector(4, 0, 0);
5656 perspective = false;
5757 break;
5858 case 2: // '\002'
....@@ -63,7 +63,7 @@
6363 //LA.matXRotate(fromScreen, LA.toRadians(90));
6464 break;
6565 case 3: // '\003'
66
- location = LA.newVector(4, 0, 0);
66
+ location = LA.newVector(0, 0, 4);
6767 //LA.matZRotate(toScreen, LA.toRadians(-90));
6868 //LA.matXRotate(toScreen, LA.toRadians(-90));
6969 //LA.matXRotate(fromScreen, LA.toRadians(90));
....@@ -71,7 +71,7 @@
7171 perspective = false;
7272 break;
7373 case 4: // Default light
74
- location = LA.newVector(10, 30, 20);
74
+ location = LA.newVector(-10, 30, 20);
7575 perspective = false;
7676 break;
7777 }
....@@ -319,7 +319,7 @@
319319 location.set(lookAt);
320320 lookAt.set(cStatic.point1);
321321
322
- computeTransform();
322
+ //computeTransform();
323323 }
324324
325325 //synchronized // june 2014