Given a terrain object or a single large terrain mesh which has differently texture materials, does anyone have advice on architecting a way to determine if the collision point is of a particular physics material ?
An example would be I have a desert (plane) and going through the middle is a textured road (gravel). It wouldn't make sense to break the ground mesh up into several parts. I can think of a few ways but none seem elegant or would work in a generalized sense.
Some off the head ideas :
I could have a material map and paint the world and do a texture lookup, but this doesnt extend to things like buildings and trees.
I could have a scripe with an enum attached to every object, but some objects can be made of 2-3 different materials.