Hey guys,
I’m working on a game where there are several rigidbodies arranged in a playspace and the player can select one of the rigidbodies and drag it around. I’ve gotten this to work ok, but there are a few issues I’m having that I’m unsure how to resolve.
-
Is there any way to have the dragged object smoothly glide around the edges of obstacles? For example, if there is a row of objects in the way, I’d want the dragged object to stop at the edge of the objects, but then still move up and down, “gliding” against the edges of the objects. I’ve tried using MovePosition, but there is some interpenetration that occurs.
-
When the dragged object hits other rigidbodies in the area, it pushes these other rigidbodies out of the way. I don’t think I can make the rigidbodies kinematic because I still need to apply gravity to them. Is there any way to make a rigidbody immovable by another rigidbody?