Getting material name under wheel collider.

i have a single mesh with multiple materials.
it has two materials namely sand and road;
is it possible to get the name of the material under the wheel collider that is touching it, or do i need to get separate meshes.

You don’t need separate meshes for rendering, but the best way to do this would be to separate them for the collision meshes. That way, you could tell which collision mesh it’s interacting with very easily.

However, if you want to keep them together, you can calculate which triangle it’s interacting with by adding some raycast math. But that would have significant performance impact unless you added BSP or something (which would have RAM impact).