Hey!
I’m trying to create polygon colliders on my platforms, which will act as triggers/boundaries where my character can move. This is to ensure playability for when I automatically generate levels, tossing away levels which don’t connect from start to end.
However, I need to be able to modify the collider if another platform intersects the area.
I’ve tried to illustrate it with my shitty pictures. In the first image, the black box shows the platform, and the purple shows the area where the player can move from the platform.
In the second image, a new platform is placed under. The blue area shows where the player can move from the new platform. The orange shows the area which is no longer accessible from the first platform. Green shows no longer from first, but accesible from second.
Is there a way how I can change the polygon collider to end at the new platform, or is there another technique which I should look into instead, e.g. raycasting or some form of nav mesh?



