Consider:
https://processing.org/reference/modelX_.html
Add this snippet to code (from above) and observe:
// draw another box at the same (x, y, z) coordinate as the other
pushMatrix();
translate(x, y, z);
stroke(255, 0, 0);
box(50);
println("1:", x, y, z);
popMatrix();
println("2:", x, y, z);
stroke(255, 255, 0);
strokeWeight(10);
point(x, y, z);
strokeWeight(1);
}
Tell us more.
I never used modelX() so this will be useful for me!