Rev 26 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 26 | Rev 32 | ||
---|---|---|---|
1 | package test.fraktal3d; |
1 | package test.fraktal3d; |
2 | import com.jme.app.SimpleGame; |
2 | import com.jme.app.SimpleGame; |
3 | import com.jme.math.Vector3f; |
3 | import com.jme.math.Vector3f; |
4 | import com.jme.scene.Node; |
- | |
5 | 4 | ||
6 | public class BouncingBall extends SimpleGame { |
5 | public class BouncingBall extends SimpleGame { |
7 | 6 | ||
8 | @Override |
7 | @Override |
9 | protected void simpleInitGame() { |
8 | protected void simpleInitGame() { |
10 | // Scene einstellen |
9 | // Scene einstellen |
11 | // Kamaraentfernung erhöhen |
10 | // Kamaraentfernung erhöhen |
12 | cam.setLocation(new Vector3f(0, 50, 150)); |
11 | cam.setLocation(new Vector3f(0, 50, 150)); |
13 | 12 | ||
14 | // Elemente an rootNode anhängen |
13 | // Elemente an rootNode anhängen |
15 | new Raumplan(rootNode, 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING).los(rootNode, 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING); |
14 | new Raumplan(rootNode, 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING).los(rootNode, 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING); |
16 | 15 | ||
17 | // rootNode.attachChild(new Raumplan(new Node(), 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING).getRoomNode()); |
16 | // rootNode.attachChild(new Raumplan(new Node(), 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING).getRoomNode()); |
18 | } |
17 | } |
19 | 18 | ||
20 | /** |
19 | /** |
21 | * @param args |
20 | * @param args |
22 | */ |
21 | */ |
23 | public static void main(String[] args) { |
22 | public static void main(String[] args) { |
24 | BouncingBall ball = new BouncingBall(); |
23 | BouncingBall ball = new BouncingBall(); |
25 | ball.setConfigShowMode(ConfigShowMode.AlwaysShow); |
24 | ball.setConfigShowMode(ConfigShowMode.AlwaysShow); |
26 | ball.start(); |
25 | ball.start(); |
27 | } |
26 | } |
28 | } |
27 | } |
29 | 28 |