I need some simple pointers on how to turn an imported model into a Cannon.js heightfield.
I would prefer this over actual heightmaps, as I feel that I'm more in control of the design of the ground.
I made a simple PG example so I can test it along the way. Just a very basic model made out of a 20x20 plane.
How would you pull the positions(Especially Y) on the individual vertices, so they can be used to create the heightfield shape and added to a Cannon.js body?
This i