thinking about it :
- loop in the faces of your sea
- get the the boat x,z position
- for each face get a median point defining the face :
facepos.x = (_face.v0.x + _face.v1.x + _face.v2.x) / 3;
facepos.y = (_face.v0.y + _face.v1.y + _face.v2.y) / 3;
facepos.z = (_face.v0.z + _face.v1.z + _face.v2.z) / 3;
- if the facepos is near the boat position (I assume you know how to
do it ), use this one as reference and now :
- link them with the Facelink class.or something like that...
