Skip to content

Commit

Permalink
[Fix] changed angle to calculate overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
guerwan committed Apr 1, 2019
1 parent 687ded1 commit a48cdd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void onUpdate(FrameTime frameTime) {
Ray ray = new Ray();
ray.setOrigin(cameraPosition);

float xDelta = (float) (distanceInAR * Math.sin(Math.PI / 12)); //15 degrees
float xDelta = (float) (distanceInAR * Math.sin(Math.PI / 15)); //12 degrees
Vector3 cameraLeft = getScene().getCamera().getLeft().normalized();

Vector3 left = Vector3.add(nodePosition, cameraLeft.scaled(xDelta));
Expand Down

0 comments on commit a48cdd0

Please sign in to comment.