xxxlaf
1
My code is…
function setup()
{
createCanvas(500, 500, WEBGL);
}
function draw()
{
background(200);
orbitControl();
// Objects
box(75, 100, 50);
sphere(50)
}
How would I change the x and y position of the box and/or the sphere?
2 Likes
a 3D object will be built automatically in your current location. to move the location use translate(x,y,z);
push();// begin motion
translate(x,y,z);
noFill();
sphere(50);
pop();//end motion
3 Likes
A post was split to a new topic: Processing vs Rhino coordinates