hello people outthere,
I´ve tried a function with "atan2()" to rotate objects (in this case "rects") 3-dimensional in positioning to the mouse (but it could be any other position as well). First I thought that could work, but as I made a test by drawing a "box" on the "rects", that have always the same height as the distance from the position of the rect to the position of the mouse, I saw it doesnt: when it would be right, the top of the boxes should all meet at the position of the mouse (ellipse).
Is there a way to handle it with "atan2()"? What do you suggest?
have a look! Thanks!!
import processing.opengl.*;
ArrayList<myRect> rectlist = new ArrayList<myRect>(); int rectsize = 100; int myBorder = 6; int myDepth = -100;