Hey all, I have some dynamic actors set up in my bulletsolver, where one (dynamic) rectangle encases the others. At the moment, the contained actors simply fall through the inside of the rectangle. I’d like for them to fall and stay contained within the rectangle, but can’t figure out what I’m missing. Any help much appreciated!
The main problem is that the two squares’ collision shapes are convex hulls, which means that they aren’t actually hollow and the bullet solver attempts to resolve this by pushing the other shapes out.
To fix this you need to change the squares’ collision shapes to compound, which allows a group of convex hulls to be used together as a collision shape, allowing for complex/concave dynamic collision shapes.
To actually achieve this you need to perform convex decomposition on your concave shape, which in your case is quite easy since its just a hollow square. If you separate out each side of the square into its own SOP and use the 4 of those to create your collision shape you’ll end up with your hollow square. See attached updated toe: