diff src/alice/test/topology/fishmodel/alpha/MakeObject.java @ 110:aa9fc077c286 working

remove host from checkFishLocation
author sugi
date Sun, 15 Jul 2012 21:32:48 +0900
parents 96674c803853
children ba64a9d76e70
line wrap: on
line diff
--- a/src/alice/test/topology/fishmodel/alpha/MakeObject.java	Sun Jul 15 20:48:01 2012 +0900
+++ b/src/alice/test/topology/fishmodel/alpha/MakeObject.java	Sun Jul 15 21:32:48 2012 +0900
@@ -75,7 +75,6 @@
 	}
 	
 	private Appearance createAppearance(){
-		//System.out.println(new File(".").getAbsolutePath());
 		Appearance app = new Appearance();
 		Image image = null; 	
 		Toolkit toolkit = Toolkit.getDefaultToolkit();
@@ -103,5 +102,12 @@
 		transform.setTranslation(vector);
 		transform_group.setTransform(transform);
 	}
+	
+	public void setLocation(float x,float y,float z){
+		transform = new Transform3D();
+		vector = new Vector3f(x,y,z);
+		transform.setTranslation(vector);
+		transform_group.setTransform(transform);
+	}
 }