changeset 84:4bd3178f218b working

minor change
author sugi
date Tue, 29 May 2012 17:26:23 +0900
parents 909e1c9bc6fc
children 79816f4ec4dc f8d86641b2ec
files src/alice/test/topology/movement/FishMovement.java src/alice/test/topology/movement/SendLocation.java
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/alice/test/topology/movement/FishMovement.java	Tue May 29 17:14:20 2012 +0900
+++ b/src/alice/test/topology/movement/FishMovement.java	Tue May 29 17:26:23 2012 +0900
@@ -73,7 +73,7 @@
 		Box box = new Box(0.1f,0.1f,0.0f,
 				Box.GENERATE_NORMALS|Box.GENERATE_TEXTURE_COORDS,createAppearance());
 		transform_group.addChild(box);
-		setLocation(0.0f,0.0f);
+		setLocation(-10.0f,0.0f);
 		return scene;
 	}
 	
--- a/src/alice/test/topology/movement/SendLocation.java	Tue May 29 17:14:20 2012 +0900
+++ b/src/alice/test/topology/movement/SendLocation.java	Tue May 29 17:26:23 2012 +0900
@@ -29,8 +29,9 @@
 		float end = num * 2.0f - 0.9f;
 		
 		if (start <= (float)x/1000 && (float)x/1000<= end){
+			float positionX = (float)x/1000 - 2*(num -1) ;
 			FishMovement fm = FishMovement.getInstance();
-			fm.setLocation((float)x/1000, 0.0f);
+			fm.setLocation(positionX , 0.0f);
 			x++;
 			ods.update("parent", "fishX", x);
 		}