Skip to content

Commit

Permalink
Playground: work around issue with vehicle starting at x=0
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 2, 2021
1 parent 67dd4fe commit 5682e42
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public float directLightIntensity() {
*/
@Override
public Vector3f dropLocation() {
return new Vector3f(0f, 6f, 0f);
return new Vector3f(1f, 6f, 0f);
}

/**
Expand Down Expand Up @@ -132,7 +132,7 @@ public void load() {
@Override
public void resetCameraPosition() {
Camera camera = Main.getApplication().getCamera();
camera.setLocation(new Vector3f(-4f, 1.6f, -1.5f));
camera.lookAt(new Vector3f(0f, 0f, 0f), Vector3f.UNIT_Y);
camera.setLocation(new Vector3f(-3f, 1.6f, -1.5f));
camera.lookAt(new Vector3f(1f, 0f, 0f), Vector3f.UNIT_Y);
}
}

0 comments on commit 5682e42

Please sign in to comment.