How to detect if a vehicle wheel is touching or is over smooth terrain?

I am trying to make a car that has terrain trails after it wheels when it’s driving on Smooth Terrain. I already know how to make it on Parts but not on Terrain.

I am trying to get it to activate a trail on the wheels when on smooth terrain but I cant get it to.

I have tried using several ways including trying to search through the Roblox Wiki. I heard a lot of people saying that people should use ReadVoxels but when I search it up I cant get it to work with my car.

If I get any anwers you will have made my day.

1 Like

You could just downcast using a function such as FindPartOnRay and read out the Material (fourth item returned from this callback).

local _, _, _, Material = workspace:FindPartOnRay(args)
-- ^ BasePart/Terrain, Point of Intersection, Surface Normal, Material

There’s probably another method out there that I’m missing but this is the one I’m most familiar with.

2 Likes

It does not work, I printed out the material when on the terrain and it prints out Enum.Material.Plastic which means it dosen’t work.

Nevermind did the raycasting wrong it works.

1 Like

Can u tell me plz how did u did it on parts. Like how do u tell when the trail should appear or when are you drifting etc… I can’t understand the logic behind it and I can’t find anything about tire trails.

1 Like