Hi,
once mroe I find my nonexistent programming skills fail me. I've been trying to achieve the following. The camera is from above looking at a flat 3d model. By left clicking the mouse the closest vertex should be selected and manipulated by mouse movement till the mouse is released.
dragging the vertex works when I specify a vertex (for example 30):
var temp;
vec_for_mesh (temp, me, 30);
vec_add(temp,vector(mouse_force.x/5,mouse_force.y/5,0));
vec_to_mesh(temp,me,30);
However converting screen positions to real world positions, using c_trace and hit.vertex is driving me crazy
Could someone please tell me the easiest way to get a c_trace from the mouse position and how to use hit.vertex. Of course maybe I'm barking up completely the wrong tree with this
Thanks a lot!