Mercurial > hg > Members > tatsuki > Alice
diff src/alice/test/topology/movement/MakeObject.java @ 89:e269cedd8bae working
Test two fish
author | sugi |
---|---|
date | Tue, 05 Jun 2012 00:01:27 +0900 |
parents | 33a19ca88e43 |
children | 19f3bd33277d |
line wrap: on
line diff
--- a/src/alice/test/topology/movement/MakeObject.java Mon Jun 04 16:08:53 2012 +0900 +++ b/src/alice/test/topology/movement/MakeObject.java Tue Jun 05 00:01:27 2012 +0900 @@ -24,15 +24,12 @@ private Canvas3D canvas; private KeyInput key; - public MakeObject(Canvas3D C){ - this.canvas = C; + public MakeObject(MakeFrame MF){ + this.canvas = MF.getCanvas(); + this.key = MF.getKey(); } - public MakeObject(Canvas3D C,KeyInput K){ - this.canvas = C; - this.key = K; - } - + public BranchGroup createBranch(){ BranchGroup scene = new BranchGroup(); Box box = new Box(0.1f,0.1f,0.0f, @@ -42,6 +39,7 @@ transform_group.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE); transform_group.addChild(box); scene.addChild(transform_group); + setLocation(-10,0);//default position /*