Skip to content

Commit e16e1cc

Browse files
committed
fixed function names
1 parent 7b1143e commit e16e1cc

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

mode/libraries/vr/examples/GenerateRay/GenerateRay.pde

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
}
1717

1818
void draw() {
19-
backgroundColor(200, 0, 150);
19+
background(200, 0, 150);
2020

2121
cam.setPosition(0, 0, 400);
2222
push();
@@ -25,14 +25,15 @@ void draw() {
2525
sphere(30);
2626
rotateZ(millis() / 1000);
2727
line(0, 0, 0, 1000, 1000, 0);
28-
PVector[] ray = generateRay(0, 0, 0, 1000, 1000, 0);
28+
PVector origin = new PVector(0, 0, 0);
29+
PVector dest = new PVector(1000, 1000, 0);
2930

3031
pop();
3132
for (int i = 1; i < 5; ++i) {
3233
push();
3334
translate(randomx[i], randomy[i]);
3435
fill(255, 0, 0);
35-
if (intersectsSphere(70, ray)) {
36+
if (intersectsSphere(70, origin, dest)) {
3637
fill(0, 0, 255);
3738
}
3839
sphere(70);

mode/libraries/vr/examples/IntersectsBox/IntersectsBox.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void setup() {
1111
}
1212

1313
void draw() {
14-
backgroundColor(200, 0, 150);
14+
background(200, 0, 150);
1515

1616
cam.setPosition(0, 0, 200);
1717
push();

mode/libraries/vr/examples/IntersectsPlane/IntersectsPlane.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void setup() {
1010
}
1111

1212
void draw() {
13-
backgroundColor(200, 0, 150);
13+
background(200, 0, 150);
1414

1515
cam.setPosition(0, 0, 400);
1616
fill(255,170,238);

mode/libraries/vr/examples/IntersectsSphere/IntersectsSphere.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
}
1717

1818
void draw() {
19-
backgroundColor(200, 0, 150);
19+
background(200, 0, 150);
2020

2121
cam.setPosition(0, 0, 400);
2222
for (int i = 0; i < 5; ++i) {

0 commit comments

Comments
 (0)