I have a rotation widget you can rotate by clicking and holding a little dot and moving it around an origin that will rotate everything under it around the origin. I have a rigid body 2D ball that interacts with the orbiting objects within the rotation widget. But the objects in the rotation widget can break the ball through walls. I'd like to make it so that if the orbiting object is forcing the rigid body ball against a wall then it should stop moving the rotation widget to prevent it from pushing the ball through. How might i do this?
Here's a video of this happening, since this is difficult to describe through text:
the orbiting objects and the walls are rigid body's in kinematic mode, and the collision shapes are collision polygons, if that helps at all. I'll post whatever code of mine that you need.