How to make a car get dirty when it drives in dirt and other terrain

Hello, I wont to make Bp were I drive a car on dirt and it will leave dirt on tires and same with other terrains like snow, sand, mud and more I also wont to know how to do the same when a character walks in mud it gets them dirty if they fall they get dirty thanks

Example if you go on yohtube and type the crew wild run if you see how the cars get dirty thats how I wont mine to be im kind of new to.

1 Like

I’m not sure but you could try something that checks the material or texture of the objects under your vehicle and if it is dirt, make dirt material appear on your car. I’m not sure which nodes are used to check the texture of the objects under your car. Hope it makes sense.

Every material can set a PhysicsMaterial property. You can just detect what surface your car is driving on for a few points (either per tire or arbitrary points or the vehicle in total) and then use that information to drive the dirt.

You have a few options to show the dirt. You could set up texture masks and blend/lerp dirt over the orignal color.
You also could use meshes for the dirt or vertex displacement. However you wanna go about it.

Thx i will try that