I'm new here, and I have a real problem to tackle.
I'm animating a wheel of fortune, and I have no idea how to solve the rotation of the needle. The spinning of the wheel is easy, but what I need is for the needle to rotate 90 degrees whenever it hits one of the dots.
The reason why I need to make an expression is so the needle rotates correctly even when the speed of the wheel slows down.
I think it's a little complicated. I would think you could animate the needle getting out of the way based on the angle of the wheel. You can set up an equation that repeats for each segment of the wheel (looks like you have 13 segments?) with something like this:
Then you could construct your expression for the needle so that it uses the angle calculation to drive the needle's rotation. The problem is that eventually the needle needs to return to its original rotation, and that animation would happen independently of how fast the wheel was turning. So you would need some type of springy animation to take over after the angle value gets to a certain point. It could be done, but the details depend on the characteristics of your setup.
Whoa. I knew that there was a much smarter way than actually calculating the collision! That single line alone in the rotation field of the needle was enough to make it look ok, and I'm sure with a little tweaking I can make it work with just this! Im not even sure why it works, but it looks good!