I'm running a multi-body simulation of a vehicle driving on a rocky terrain
and need to get the elevation data of the terrain.
The terrain is built from 2 parts:
1) 2D grid of elevation data
2) "Rocks" which are defined as polygonal meshes with a random number of
vertices, scattered on the grid.
I need to combine the 2 parts to get a single grid representing elevation
data, including the rocks. Basically, projecting the rocks on the surface
and updating the elevation data in that area to that of the rock. Note that
the grid of the surface is finer than that of the polygonal mesh rock.
Here are the two objects rendered separately:
Is there a quick way to get the combined elevation data?