How to apply different physics (drag, friction ) to terrain ?
Hello. I'm making a simple car racing game. I would like to know best way to apply different "physics" to terrain, so for instance:
On the asphalt, low drag / friction
On grass or ice different friction ..
Thanks in advance
Have you even tried to do some research?
https://www.google.com/?gws_rd=ssl#safe=off&q=unity+how+to+change+friction
Do your research first, if you don't find any valuable information then, you can ask a new question.
Hi, i've already searched. But there's no information about apply different drag/bounciness etc to terrain itself... to an object, or material yes. But how about Terrain with different texture ?
there's no information about apply different drag/bounciness etc to terrain itself
http://docs.unity3d.com/$$anonymous$$anual/class-TerrainCollider.html
But how about Terrain with different texture ?
I guess you mean that the same terrain has a an extra friction setting for every texture on it? That's not possible.
Then again if you are making a racing game, using a terrain is not a very good idea, make the race track in a 3d application, you have much more control about the shape this way and you can have different parts of the mesh have different material ID's and split the mesh where a different physics material needs to be used.
That's the easiest way to achieve this result. But for the builtin terrain, this is not possible
If you must use a terrain you can add trigger zones to the areas where the friction needs to change and when the car passes through them, the wheel's physics material changes. That's also one possibility. But creating those trigger areas can be very difficult with normal shapes, especially for turns and uneven terrain.