Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Mobuos |
So I have this little spinner:
The idea is that the center would stay in the same position, while the whole thing spins when something enters in contact with it
So, I created a static body 2d and attached a joint to both the spinner and this new body:
The problem is, I get this result:
(Couldn’t attach a gif)
As you can see it works fine if a ball falls on the edge of its arms, but when there are multiple balls, or if the ball touches the middle of the spinner, it bugs out and doesn’t stay completely still.
This is more visible in this other gif, where I changed the softness of the PinJoint2D to 16 and the Bias to 0
Of course, changing the Bias to 0.9 and Softness to 0 helps, but as you might notice in the first gif, it doesn’t solve the problem. How do I avoid this behaviour?
Edit: Btw, I want to (later) be able to instance those spinners just like I did with the balls.