Vehicle Wheel - Terrain Dust

Hello! I’m attempting to see how I can detect if a vehicle wheel is touching a certain type of terrain material/surface.

I’ve done some research and saw that I could use Raycasting? I’m not sure where to start from there. My ultimate goal is to detect if a car wheel is detecting grass or mud, and to enable a dust particle to simulate dust coming off of a wheel.

I hope someone could point me in the right direction, thanks!

1 Like

You’ll want to fire a short raycast down from the wheels every tenth of a second, and use RaycastResult.Material to determine what your tires are colliding with. If the ray hits grass or mud, use a ParticleEmitter to emit dust particles from the tire.


Thanks! I appreciate it, it is working very well.

I’m looking for a system like that do you use achassi?