Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed legs

  • Loading branch information...
commit 39ff79358e02a22e2a7c6170ba41a74aaad5e283 1 parent c7eec18
authored March 28, 2012

Showing 1 changed file with 7 additions and 3 deletions. Show diff stats Hide diff stats

  1. 10  CubeControl/Led3D.java
10  CubeControl/Led3D.java
@@ -145,9 +145,9 @@ public Led3D(Canvas3D canv, Frame f) {
145 145
 				}
146 146
 			}
147 147
 			// 8 times, use x as y
148  
-			drawLedFeetHorizontal(-3.5, (double) x-4, 3.5, 7.0f, 0.02f, 90);
149  
-			drawLedFeetHorizontal(2.5, (double) x-4, 3.5, 7.0f, 0.02f, 90);
150  
-			drawLedFeetHorizontal(-1.5, (double) x-4, 3.5, 7.0f, 0.02f, 90);
  148
+				for(int i = 0; i > -8; i--){
  149
+					drawLedFeetHorizontal(i+3, (double) x-4, -0.5, 7.0f, 0.02f, 90);
  150
+				}
151 151
 		}
152 152
 
153 153
 		// Add an ambient light
@@ -191,12 +191,16 @@ public void mouseClicked(MouseEvent e) {
191 191
 									break;
192 192
 								} else if ((x == 7) && (y == 7) && (z == 7)) {
193 193
 									System.out.println("Clicked, but LED not found!");
  194
+
194 195
 								}
195 196
 							}
196 197
 						}
197 198
 					}
198 199
 				} else {
199 200
 					System.out.println("Clicked, but not a sphere. Clicked object: " + p.getClass().getName());
  201
+					if(p.getClass().getName().equals("com.sun.j3d.utils.geometry.Cylinder")){
  202
+
  203
+					}
200 204
 				}
201 205
 			}
202 206
 		} else {

0 notes on commit 39ff793

Please sign in to comment.
Something went wrong with that request. Please try again.