Best way to walk on a mesh?

Blitz3D Forums/Blitz3D Programming/Best way to walk on a mesh?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I`m currently coding the players avatar to walk on an uneven mesh that I am using for terrain, but I`m having problems getting it to "stick" to the ground. It is floating a little above the ground ,and sometimes drops through when going uphill.
I am using linepick to detect the mesh below the avatar. Would using entitycollided be better for this?

What would be the best way to code walking on a mesh?