Hey Forum I was wondering if any one here knows or would have an idea on how to displace terrain i.e in the latest car games on PS3 or X Box the terrain changes when you drive over it .
Regards Jason
Hey Forum I was wondering if any one here knows or would have an idea on how to displace terrain i.e in the latest car games on PS3 or X Box the terrain changes when you drive over it .
Regards Jason
I’m not sure this can be done with the terrain system, but you can modify a standard mesh on the fly in your game. The Mesh class allows you access to the mesh’s various properties (vertices, normals, etc) to let you modify them at runtime. If you assign the updated mesh to the mesh collider’s sharedMesh property, the collider will be updated to the new shape.
Depends on what exactly you want to do.
Raising or lowering of terrain is trivial and can be done at runtime. Changing the terrain texture at a specific location requires a bit more of code (to calculate the splatmap offset from an x/y/z position, mostly) but is perfectly doable.
I actually want to create dents in the terrain mesh, like Andeee said so thanks Andy and you .Tom have given me a great idea ,aww man ima have my self a fuuun game!!.