Skip to content

Commit 4a26d98

Browse files
committed
testing anchors
1 parent 6f78c57 commit 4a26d98

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

debug/apps/arscene/src/main/java/arscene/Sketch.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ public void draw() {
3232
for (int i = 0; i < trackableCount(); i++) {
3333
int status = trackableStatus(i);
3434
if (status == PAR.PAUSED || status == PAR.STOPPED) continue;
35-
if (!trackableSelected(i)) continue;
35+
// if (!trackableSelected(i)) continue;
3636

3737
if (status == PAR.CREATED) {
3838
anchorId = createAnchor(trackableId(i), 0, 0.3f, 0);
39+
System.out.println("*********************> CREATED ANCHOR " + anchorId);
3940
}
4041

4142
float lenx = trackableExtentX(i);
@@ -64,12 +65,15 @@ public void draw() {
6465

6566
if (0 < anchorCount()) {
6667
anchor(anchorId);
67-
fill(0xFCB736);
68-
noStroke();
69-
sphere(0.10f);
70-
rotateZ(angle);
71-
translate(0, 0.3f, 0);
72-
sphere(0.05f);
68+
fill(255);
69+
70+
rotateY(angle);
71+
box(0.2f);
72+
// noStroke();
73+
// sphere(0.10f);
74+
// rotateZ(angle);
75+
// translate(0, 0.3f, 0);
76+
// sphere(0.05f);
7377
angle += 0.1;
7478
}
7579
}

0 commit comments

Comments
 (0)