Skip to content

Commit 73ca383

Browse files
committed
Fix raycasting example
1 parent d311934 commit 73ca383

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/data/examples/en/20_3D/05_ray_casting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let eyeZ;
1010
function setup() {
1111
createCanvas(710, 400, WEBGL);
1212

13-
eyeZ = height / 2 / tan((30 * PI) / 180); // The default distance the camera is away from the origin.
13+
eyeZ = 800; // The default distance the camera is away from the origin.
1414

1515
objects.push(new IntersectPlane(1, 0, 0, -100, 0, 0)); // Left wall
1616
objects.push(new IntersectPlane(1, 0, 0, 100, 0, 0)); // Right wall

src/data/examples/es/20_3D/05_ray_casting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let eyeZ;
99
function setup() {
1010
createCanvas(710, 400, WEBGL);
1111

12-
eyeZ = height / 2 / tan((30 * PI) / 180); // The default distance the camera is away from the origin.
12+
eyeZ = 800; // The default distance the camera is away from the origin.
1313

1414
objects.push(new IntersectPlane(1, 0, 0, -100, 0, 0)); // Left wall
1515
objects.push(new IntersectPlane(1, 0, 0, 100, 0, 0)); // Right wall

src/data/examples/hi/20_3D/05_ray_casting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let eyeZ;
99
function setup() {
1010
createCanvas(710, 400, WEBGL);
1111

12-
eyeZ = height / 2 / tan((30 * PI) / 180); // डिफ़ॉल्ट दूरी कैमरा मूल से दूर है।
12+
eyeZ = 800; // डिफ़ॉल्ट दूरी कैमरा मूल से दूर है।
1313

1414
objects.push(new IntersectPlane(1, 0, 0, -100, 0, 0)); // बाईं दीवार
1515
objects.push(new IntersectPlane(1, 0, 0, 100, 0, 0)); // दाहिनी दीवार

src/data/examples/ko/20_3D/05_ray_casting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let eyeZ;
99
function setup() {
1010
createCanvas(710, 400, WEBGL);
1111

12-
eyeZ = height / 2 / tan((30 * PI) / 180); // 카메라가 원점에서 떨어진 기본 위치
12+
eyeZ = 800; // 카메라가 원점에서 떨어진 기본 위치
1313

1414
objects.push(new IntersectPlane(1, 0, 0, -100, 0, 0)); // 왼쪽 벽
1515
objects.push(new IntersectPlane(1, 0, 0, 100, 0, 0)); // 오른쪽 벽

src/data/examples/zh-Hans/20_3D/05_ray_casting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let eyeZ;
99
function setup() {
1010
createCanvas(710, 400, WEBGL);
1111

12-
eyeZ = height / 2 / tan((30 * PI) / 180); // The default distance the camera is away from the origin.
12+
eyeZ = 800; // The default distance the camera is away from the origin.
1313

1414
objects.push(new IntersectPlane(1, 0, 0, -100, 0, 0)); // Left wall
1515
objects.push(new IntersectPlane(1, 0, 0, 100, 0, 0)); // Right wall

0 commit comments

Comments
 (0)