CameraPane.java | ●●●●● patch | view | raw | blame | history | |
Grafreed.java | ●●●●● patch | view | raw | blame | history | |
GroupEditor.java | ●●●●● patch | view | raw | blame | history | |
ObjEditor.java | ●●●●● patch | view | raw | blame | history | |
com/bulletphysics/dynamics/RigidBody.java | ●●●●● patch | view | raw | blame | history |
CameraPane.java
.. .. @@ -14676,21 +14676,22 @@ 14676 14676 RigidBody.pos.z = 0; 14677 14677 if (RigidBody.justclicked) 14678 14678 { 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 14682 // System.err.println("selected point = " + Trunk(selectedpoint.toParent[3][0]) + " " + Trunk(selectedpoint.toParent[3][1]) + " " + Trunk(selectedpoint.toParent[3][2])); 14683 14683 CreateSelectedPoint(); 14684 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 -14689 - RigidBody.wind.set(RigidBody.pos);14690 - RigidBody.wind.x -= (float)manipCamera.location.x;14691 - RigidBody.wind.y -= (float)manipCamera.location.y;14692 - RigidBody.wind.z -= (float)manipCamera.location.z;14693 - RigidBody.wind.normalize();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 +//14689 +// RigidBody.wind.set(RigidBody.pos);14690 +// RigidBody.wind.x -= (float)manipCamera.lookAt.x;14691 +// RigidBody.wind.y -= (float)manipCamera.lookAt.y;14692 +// RigidBody.wind.z -= (float)manipCamera.lookAt.z;14693 +// RigidBody.wind.scale(-1);14694 +// RigidBody.wind.normalize();14694 14695 } 14695 14696 14696 14697 if (mute) Grafreed.java
.. .. @@ -60,6 +60,11 @@ 60 60 } 61 61 } 62 62 63 + static void Beep()64 + {65 + java.awt.Toolkit.getDefaultToolkit().beep();66 + }67 +63 68 public static String RemovePrefix(String s, String prefix) 64 69 { 65 70 if (s != null && prefix != null && s.startsWith(prefix)) GroupEditor.java
.. .. @@ -2835,7 +2835,7 @@ 2835 2835 { 2836 2836 // Go to previous version 2837 2837 //if (!Undo()) 2838 - //java.awt.Toolkit.getDefaultToolkit().beep();2838 + //Grafreed.Beep();2839 2839 PreviousVersion(); 2840 2840 } else 2841 2841 if (source == restoreButton) .. .. @@ -2859,7 +2859,7 @@ 2859 2859 { 2860 2860 // Save a new version 2861 2861 if (!DuplicateVersion()) //true)) 2862 - java.awt.Toolkit.getDefaultToolkit().beep();2862 + Grafreed.Beep();2863 2863 } else 2864 2864 if (source == deleteVersionButton) 2865 2865 { ObjEditor.java
.. .. @@ -5090,7 +5090,7 @@ 5090 5090 5091 5091 if (copy.versionindex == 0) 5092 5092 { 5093 - java.awt.Toolkit.getDefaultToolkit().beep();5093 + Grafreed.Beep();5094 5094 return false; 5095 5095 } 5096 5096 .. .. @@ -5126,7 +5126,7 @@ 5126 5126 5127 5127 if (copy.versionindex == -1 || copy.versionlist[copy.versionindex] == null) 5128 5128 { 5129 - java.awt.Toolkit.getDefaultToolkit().beep();5129 + Grafreed.Beep();5130 5130 return false; 5131 5131 } 5132 5132 .. .. @@ -5149,7 +5149,7 @@ 5149 5149 // < 0 means == -2 || == -1 5150 5150 if (copy.versionindex < 0 || copy.versionlist[copy.versionindex] == null) 5151 5151 { 5152 - // No version yet. OK. java.awt.Toolkit.getDefaultToolkit().beep();5152 + // No version yet. OK. Grafreed.Beep();5153 5153 return false; 5154 5154 } 5155 5155 .. .. @@ -5167,7 +5167,7 @@ 5167 5167 5168 5168 if (copy.versionlist[copy.versionindex + 1] == null) 5169 5169 { 5170 - java.awt.Toolkit.getDefaultToolkit().beep();5170 + Grafreed.Beep();5171 5171 return; 5172 5172 } 5173 5173 .. .. @@ -6104,6 +6104,8 @@ 6104 6104 //String filename; 6105 6105 //iCallBack callback; 6106 6106 6107 + boolean running;6108 +6107 6109 java.util.Stack stack; 6108 6110 6109 6111 LoadGFDThread(/*String fullname, iCallBack cb*/) .. .. @@ -6133,6 +6135,7 @@ 6133 6135 }; 6134 6136 if (!stack.empty()) 6135 6137 { 6138 + running = true;6136 6139 frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); 6137 6140 iCallBack callback = (iCallBack) stack.pop(); 6138 6141 String filename = (String) stack.pop(); .. .. @@ -6140,6 +6143,7 @@ 6140 6143 callback.Callback(ReadGFD(filename)); 6141 6144 System.gc(); 6142 6145 wasbusy = true; 6146 + running = false;6143 6147 } else 6144 6148 { 6145 6149 if (wasbusy) .. .. @@ -6162,6 +6166,12 @@ 6162 6166 loadGFDThread.start(); 6163 6167 } 6164 6168 6169 + if (loadGFDThread.running)6170 + {6171 + Grafreed.Beep();6172 + return;6173 + }6174 +6165 6175 loadGFDThread.add(fullname, cb); 6166 6176 } 6167 6177 com/bulletphysics/dynamics/RigidBody.java
.. .. @@ -237,19 +237,19 @@ 237 237 238 238 justclicked = false; 239 239 240 -// wind.set(pos);241 -// wind.x -= worldTransform.origin.x;242 -// wind.y -= worldTransform.origin.y;243 -// wind.z -= worldTransform.origin.z;240 + wind.set(pos);241 + wind.x -= worldTransform.origin.x;242 + wind.y -= worldTransform.origin.y;243 + wind.z -= worldTransform.origin.z;244 244 245 - this.collisionShape.getAabb(worldTransform, min, max);246 -247 - if (pos.x < min.x || pos.x > max.x)248 - return;249 - if (pos.y < min.y || pos.y > max.y)250 - return;251 - if (pos.z < min.z || pos.z > max.z)252 - return;245 +// this.collisionShape.getAabb(worldTransform, min, max);246 +//247 +// if (pos.x < min.x || pos.x > max.x)248 +// return;249 +// if (pos.y < min.y || pos.y > max.y)250 +// return;251 +// if (pos.z < min.z || pos.z > max.z)252 +// return;253 253 254 254 float dot = pos.x * wind.x + pos.y * wind.y + pos.z * wind.z; 255 255