I'm always perplexed by the bridge coding issues.
player interacting with objects; hearth fires are already a thing. a player can walk over them.
Object and object; a cart can not pass a hearth fire.
Can you not use the Hearth fire & player code in a sense for specialized objects? such a bridges?
the rest of the code that's missing is
objects moving on objects.
Using the same code based around mountains when going up and down with a cart.
That could be copied into a bridge code.
player.X position and Bridge.X position
if you had railing on the bridge. then you could split the bridge up into 3 objects when made.
Railing then will be easier to handle in X position.
and with 3 objects.
you'd only interact with the master object.
once the master object is destroyed or made.
it checks to see if it had other objects (railing) to make or remove them.