I’m programming a C raytracing project.
I’ve been wanting to implement object rotations (square, cylinder) for several days but I can’t do it.
For each object, I have its position (x, y, z) in the world space and its 3d normalized orientation vector.
For the moment, I do nothing more than applying once of the three following functions on the 3d normalized orientation vector. I don’t know if I’m doing it right. Rotation doesn't work well.
For example, I want to rotate my object left with the j key and right with the l …