Hello!
I am making the interaction of objects with high-density height map.
The object typically covers hundreds of samples of the height map.
The standard method of collision, which is transformation of the height map in the triangle, is too slow in my case.
(It is easy to get 500 or more triangles from the height map).
I have solved this problem by the conversion of averaged samples of the map in the surface.
The height map is smooth enough according the terms, so the surface is approximated it with sufficient accuracy.
The picture below shows a blue surface, which is convered to equilateral triangles part of height map.
The side of the triangle of this surface is 6 normal samples of height map.
I have an idea to try the calculation of the interaction of the height map with the map of the depth of the object.
It is also known as a "height map span". The picture 2 shows an example of the depth map.
The intersection of the object with a height map in this case is simple to calculate, the output is a two-dimensional map of the depth of interpenetration of the object and the height map.
Is it possible to introduce a set of points of the contact of the two surfaces in a physics engine?
I think it is easy to reduce the number of contact points to several dozen, averaging the values.
What should I do then? Can I pass these parameters to Newton?