Normand Briere
2019-10-04 57c5b6cd8d12ffdaa3e0b099451e3c031012750a
CameraPane.java
....@@ -124,7 +124,7 @@
124124 static boolean LOCALTRANSFORM = false;
125125 static boolean FULLSCREEN = false;
126126 static boolean SUPPORT = true;
127
-static boolean INERTIA = true;
127
+static boolean INERTIA = false; // true;
128128 static boolean FAST = false;
129129 static boolean SLOWPOSE = false;
130130 static boolean FOOTCONTACT = true;
....@@ -250,7 +250,7 @@
250250
251251 public javax.media.opengl.GL GetGL0()
252252 {
253
- return null;
253
+ return currentGL;
254254 }
255255
256256 public int GenList()
....@@ -1530,7 +1530,7 @@
15301530 }
15311531 }
15321532 float b = 0;
1533
- if (obj.support != null && obj.link2master)
1533
+ if (obj.support != null && obj.Link2Support())
15341534 {
15351535 b = 1;
15361536 }
....@@ -10761,7 +10761,9 @@
1076110761 }
1076210762 /**/
1076310763
10764
- if (selection)
10764
+ boolean control = ((modifiers & CTRL) != 0);
10765
+
10766
+ if (selection && (!Globals.isLIVE() || control))
1076510767 {
1076610768 selectbuffer.display();
1076710769 return;
....@@ -14346,8 +14348,6 @@
1434614348
1434714349 public void mousePressed(MouseEvent e)
1434814350 {
14349
- RigidBody.justclicked = true;
14350
- System.out.println("justclicked: " + e);
1435114351 //System.out.println("mousePressed: " + e);
1435214352 clickStart(e.getX(), e.getY(), e.getModifiers(), e.getModifiersEx());
1435314353 }
....@@ -14655,7 +14655,7 @@
1465514655 boolean jump;
1465614656 boolean live;
1465714657
14658
- boolean mute;
14658
+ boolean mute = false;
1465914659
1466014660 // void JumpToTarget()
1466114661 // {
....@@ -14676,9 +14676,16 @@
1467614676 RigidBody.pos.z = 0;
1467714677 if (RigidBody.justclicked)
1467814678 {
14679
- RigidBody.pos.x = (float)manipCamera.lookAt.x;
14680
- RigidBody.pos.y = (float)manipCamera.lookAt.y;
14681
- RigidBody.pos.z = (float)manipCamera.lookAt.z;
14679
+// RigidBody.pos.x = (float)manipCamera.lookAt.x;
14680
+// RigidBody.pos.y = (float)manipCamera.lookAt.y;
14681
+// RigidBody.pos.z = (float)manipCamera.lookAt.z;
14682
+ // System.err.println("selected point = " + Trunk(selectedpoint.toParent[3][0]) + " " + Trunk(selectedpoint.toParent[3][1]) + " " + Trunk(selectedpoint.toParent[3][2]));
14683
+ CreateSelectedPoint();
14684
+
14685
+ RigidBody.pos.x = (float)selectedpoint.toParent[3][0];
14686
+ RigidBody.pos.y = (float)selectedpoint.toParent[3][1];
14687
+ RigidBody.pos.z = (float)selectedpoint.toParent[3][2];
14688
+
1468214689 RigidBody.wind.set(RigidBody.pos);
1468314690 RigidBody.wind.x -= (float)manipCamera.location.x;
1468414691 RigidBody.wind.y -= (float)manipCamera.location.y;
....@@ -15367,6 +15374,12 @@
1536715374
1536815375 public void mouseReleased(MouseEvent e)
1536915376 {
15377
+ if (isRenderer && !movingcamera)
15378
+ {
15379
+ RigidBody.justclicked = true;
15380
+ System.out.println("justclicked: " + e);
15381
+ }
15382
+
1537015383 Globals.MOUSEDRAGGED = false;
1537115384
1537215385 movingcamera = false;
....@@ -17155,7 +17168,7 @@
1715517168 return;
1715617169 }
1715717170
17158
- if (WIREFRAME)
17171
+ //if (WIREFRAME)
1715917172 gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_FILL);
1716017173
1716117174 gl.glDisable(gl.GL_CULL_FACE);
....@@ -17255,6 +17268,8 @@
1725517268
1725617269 if (WIREFRAME)
1725717270 gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_LINE);
17271
+ else
17272
+ gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_FILL);
1725817273 }
1725917274
1726017275 private void DrawChecker(GL gl)