Procházet zdrojové kódy

TestBetterCharacter: set initial camera location (issue #1630) (#1631)

Stephen Gold před 3 roky
rodič
revize
2610e8d42a

+ 2 - 0
jme3-examples/src/main/java/jme3test/bullet/TestBetterCharacter.java

@@ -118,6 +118,8 @@ public class TestBetterCharacter extends SimpleApplication implements ActionList
         // Add character node to the rootNode
         rootNode.attachChild(characterNode);
 
+        cam.setLocation(new Vector3f(10f, 6f, -5f));
+
         // Set forward camera node that follows the character, only used when
         // view is "locked"
         camNode = new CameraNode("CamNode", cam);