Hi, I am making a pinball game and need the flippers to rotate. The two solutions I came up with is using the rigidbody’s angular velocity and using the transform’s rotation.
Either way, it works decently in preview mode. However, when I build and run it, the flipper that uses angular velocity just jitters, and the flipper that uses rotation instantly rotates to the final rotation angle.
Does anybody know what the problem is and how to fix it?
Also, both of these solutions are kinda bad. How would you do flippers in a pinball game?
I don’t have an answer, but a forum search for ‘pinball’ returns many hits. I’d be willing to bet you could find some useful information in there somewhere.
That’s the latest incarnation of the code. For some reason, no matter how much torque I add, it’s never fast enough. Not only that, but the behavior is different in preview mode and in Build and Run mode.
I tried using the motor and spring that comes with the hinge, but that also doesn’t work well because it starts up slowly. I need something that rotates it quickly right away. Also, I need the flipper to affect the ball but not visa versa, so I made the flipper have 128 mass an the ball 4.