So my camera is attached to an actor, named 'dolly' (after the carts that hold cameras in Hollywood) and as this dolly moves around, it will collide with other actors designed to block it. This basically keeps the camera focused on the playable area like we see in Metroid, Mega Man, and many other platdormers. Seems simple right?
The fundamental issue is the physics and what shape the dolly has. If it's square, it snags and stops on everything. The best is a circle in the center but it leaves an undesirable spacing on the sides. The middle ground is two circles that overlap to cover the screen's dimensions with a pill shape. This is ALMOST perfect, flawed in only the fact that the pill shape still has a flat side on the top and bottom. This snags if the player takes a sharp corner, but is fine after the corner gets to the round part of the pill shape.
My theorized solution is to have the dolly somehow slide out of the way somehow when the flat side gets snagged. Either physically or offsetting the camera's position on the dolly. I can't seem to reliably make that happen.
Anyone who wants to try it, I can post the code, it's surprisingly simple. Plus I believe it would be a valuable behavior to have around once this last challenge is overcome.
I welcome any and all suggestions, thoughts, and ideas here.