Orbit object along circular path by 1° increments

Sep 01, 2023

I need an image to move along a circular path by 1 degree increments while keeping its orientation/direction when the user presses a button. I know I can rotate an object using the dial feature, but this does not preserve orientation (unless there is a setting I am missing). Is there a way to do this?

I have attached a slide from my project with exiting triggers. There are 3 objects "SphereLineAxis". The middle one can stay stationary. But the other two need to orbit with the lines underneath. I have also attached a short video clip that shows what this looks like in real life so you can see what I am trying to mimic.

It is an interaction that happens after a short video. The goal is to help the user learn how to perform lensometry, which is how we can figure out a RX in an existing pair of glasses.

Any help is appreciated. Thanks!

2 Replies
David Westra

Still interested in a better solution if anyone has it.

But I changed by increments to 5°, and decided to use image states instead. Because line axis only gets measured by 180 degree, instead of 180 images, I only needed 36 (per question; I have 3 examples).

I then used excel to calculate X,Y pixel position of the images based on a center rotation point, plugged them into my drawing software (Krita, its free!) and exported the images to be used as states.

I set my axis wheel to still be a dial, but rotate in 5° increments and used the variable it generates to set the image state so they matched.