Imagine I have a submarine or a boat; they move in world space, so I need a way to keep agents and player onboard, and let them enter inside closed areas.
I read about how to accomplish this, and seems that there are 2 main approach: one is to make a convex volume from the mesh, and another is to place colliders on the surfaces you want the player or agents to walk on.
I tried the convex route and the result is that it is quite problematic in small areas, with player and agents getting stuck; it works for a room size volume, but if you imagine a submarine room, that won’t work at all.
Tried to use colliders and that was somehow working, but incredibly time consuming, since for complex meshes you can’t just add a cube and stretch it; otherwise the movements are hindered as much as in the convex approach.
How do you deal with such scenario? Are there other ways to get this done reliably? I am looking for a solution that allow both player and agents to navigate the interiors and exteriors of moving objects.