I'm struggling with this Math problem and my skills are failing me. To see my progress so far, you can view the working example here.
After extracting the y and z positions from the rotating cylinder, I've managed to pause the animation when the number 1 is visible. However, my current method feels clunky:
if (p > 75 && p < 90 && pp > 155 && pp < 165){
Upon further observation of the y and z values, I've noticed significant changes in value (try running the sample multiple times) prompting the need for a specific range check.
Since there are 8 faces on the cylinder, I was hoping to simply identify which face is "front-facing" or determine the angle of rotation during animation. I'm unsure how to output the angle during the rotation process.
If anyone has any hints or tips, it would be greatly appreciated.