Browse Source

Fixed coordinate axis

Max Nuding 12 years ago
parent
commit
4d4b6e6e13
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      CubeControl/Led3D.java

+ 5
- 4
CubeControl/Led3D.java View File

@@ -183,18 +183,19 @@ public class Led3D extends MouseAdapter {
183 183
 			}
184 184
 		}
185 185
 
186
-		drawLedFeetVertical(0, 0, 0, 10, 0.01f); //
187
-		drawLedFeetHorizontal(0, 0, 0, 10, 0.01f, 0); // x, y, and z axis
186
+		drawLedFeetVertical(5, 5, -5, 50, 0.02f); //
187
+		drawLedFeetHorizontal(5, 5, -5, 50, 0.02f, 0); // x, y, and z axis
188
+		drawLedFeetHorizontal(5, 5, -5, 50, 0.02f, 90);
188 189
 
189 190
 		Appearance c = new Appearance();
190 191
 		c.setMaterial(redMat);
191 192
 		c.setColoringAttributes(redColor);
192 193
 
193 194
 
194
-		Sphere center = new Sphere(0.04f, Sphere.ENABLE_APPEARANCE_MODIFY, c);
195
+		Sphere center = new Sphere(0.05f, Sphere.ENABLE_APPEARANCE_MODIFY, c);
195 196
 		TransformGroup tg = new TransformGroup();
196 197
 		Transform3D transform = new Transform3D();
197
-		Vector3f vector = new Vector3f(0, 0, 0);
198
+		Vector3f vector = new Vector3f(5, 5, -5);
198 199
 		transform.setTranslation(vector);
199 200
 		tg.setTransform(transform);
200 201
 		tg.addChild(center);

Loading…
Cancel
Save