Keeping track if car is on wrong side of the road

Hi, the title pretty much explains what I want to achieve. I need one way solution to making sure that the user driving the car is on the right side of the road. The current system works but is a bit tedious, I’m just using lots of triggers to track the player entering the wrong side of the road. I’d like to have suggestions for better solutions. I can just use tag on the road actor to make sure the car is on the road but that doesn’t solve the problem with driving on the wrong side of the road. Thanks.

You can make 2 separate materials for sides of road. Give each material different physical mat. (same phys values, but different copy).
Then trace line down so it hits road somewhere under car.

You read which material is hit by trace.

That would actually be a good idea. Then you could implement something akin to Lane Departure Systems, having the four corners (or tires) detect if they are still on the correct part of the road or not.

Thanks for the idea, I’ll try that. :slight_smile: