Hello, how can i know the position in 3d space of an element?
For example if i have a sphere that have been translated and rotated many times, how can i know the exact 3d position of this sphere? is there a function or a way to knowing this?
there’s some different ways to do it, one of them is to use a ofxMatrix4x4 to apply the rotations and translations instead of glTranslate/Rotate, then upload that to opengl to apply them to your sphere using glMultMatrix. to calculate the position of the sphere you can just multiply the central point by the matrix.