I'm trying to make a pinball flipper, but before I begin working on the script to incorporate user controls, I want to get the rotational movement working. Basically it rotates in a circle around the left-most point.
Clearly one option is to make half the flipper invisible. This is the easiest way but it leaves me still not really understanding how to work with rotation. For example:
<======o======>
where o is the midpoint.
I want it to rotate along the same axis, but without the left half of the shape:
o======>
I have tried watching this video a couple times but am coming short of understanding how the hinge joint works. I attached one my left flipper and set the axis to 0,1,0 so it rotates along the y axis (remaining parallel to the playfield). I also moved the anchor to the leftmost position. I have left the rest of the hinge joint at its default configuration. Here is some evidence:
- the placement of the hinge joint (it's the little yellow arrow at the left of the flipper)
- the hinge joint config
- The buggy behavior
- The left paddle's rigid body (it is locked on all position and all rotation except y)
What I'm really trying to do is have the flipper rotate from it's leftmost point as the origin. I just want it to free-rotate when the ball hits it.