Skip to content

Commit

Permalink
TestBetterCharacter: set initial camera location (JME issue 1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Nov 19, 2021
1 parent a183864 commit a254e60
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public void prePhysicsTick(PhysicsSpace space, float tpf) {
// 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);
Expand Down

0 comments on commit a254e60

Please sign in to comment.