Sorry about the delay in responding, because I was studying the matter. Ok, now I know the process of creating a 3D mesh and how work the UV Mapping in the mesh. Thank you!
What I am now in doubt is the command "mouse_pos3d". I did many attempts but could not. I searched the forum but did not find anything like what I needed. Below a picture of animation frames of what needed:
I wanted to create a mesh from a region of a scene, where the 3D positions are relative to mouse, and an axle is fixed in the grid. The code below is almost what I want:
function shoot_with_mouse()
{
VECTOR to;
vec_set(to,mouse_dir3d);
vec_scale(to,1000); // set a range
vec_add(to,mouse_pos3d);
c_trace(mouse_pos3d,to,ACTIVATE_SHOOT);
}
Can anyone help me?
Thanks