Car spawns in the wall near gas station in Paradiso

I need to rework the way I calculate if a spawn location is suitable or not.

Here's how it currently works...

This is the nodes in that location:


It selects whatever node it selects, and first will try and spawn the vehicle on the left side of the road, then the right, then the middle.
It will reject a spawn location if there is an obstacle ABOVE it, which is fine if there's a solid wall to the sides, but with a thin wall like this, there's no obstacle above unless the position ends up being inside the tiny wall.

Instead of doing that, I need to do a line-of-sight ray trace from the middle to the side, to check there's no obstacles that way.
I'll change it up and it should work better.
Mike wrote:
I need to rework the way I calculate if a spawn location is suitable or not.

Here's how it currently works...

This is the nodes in that location:


It selects whatever node it selects, and first will try and spawn the vehicle on the left side of the road, then the right, then the middle.
It will reject a spawn location if there is an obstacle ABOVE it, which is fine if there's a solid wall to the sides, but with a thin wall like this, there's no obstacle above unless the position ends up being inside the tiny wall.

Instead of doing that, I need to do a line-of-sight ray trace from the middle to the side, to check there's no obstacles that way.
I'll change it up and it should work better.

Keep going god
Improved in 1.15