+ Snap sn = eps[i].track->get_snap_node(eps[i].track_ep);
+ float d = (sn.position-ground).norm();
+ if(d<closest_dist || closest_dist<0)
+ {
+ closest_ep = i;
+ closest_dist = d;
+ }
+ }
+
+ if(closest_ep>=0)
+ {
+ place_location = BlockIter(&track->get_block(), closest_ep);