im trying to script this spikey pom-pom balls in 3d space. i draw lines from the centre points that (i random the positions) and then translate and rotate them with random angles. the prob is i need to know the coordinates at the end of the lines after they're being rotated to proceed with my script and i cant quite figure out. i dont know if its possible? i think modelx, y, z only works for centre point? please help!
//// drawing the circles up each time the script runs
pushMatrix();
translate(linep.x, linep.y,linep.z);
for (int i = 0; i < NUM_LINES; i++) {
rotateY(rotY[i]);
rotateZ(rotZ[i]);
line(0,0,0,50,50,50);
stroke(255);
strokeWeight(.5);
}
float x = modelX(50,0,0);
float y = modelY(0,50,0);
float z = modelZ(0,0,50);
println (x);
popMatrix();
1