Quote:
i want to give the heigth lets say z = 5 my entity wil always be my.z == 5 but then on the mouse_position


I think the best way for that is using trigonometry:

Code:
VECTOR kreis_pos;
ANGLE kreis_ang;

while(1)
{

vec_set(kreis_pos,vector(mouse_pos.x,mouse_pos.y,10000));
vec_for_screen(kreis_pos,camera);

vec_to_angle(kreis_ang,vector(kreis_pos.x-camera.x,kreis_pos.y-camera.y,kreis_pos.z-camera.z));

my.x=camera.x+(camera.z-5)*(tanv(kreis_ang.tilt-90))*cos(kreis_ang.pan);
my.y=camera.y+(camera.z-5)*(tanv(kreis_ang.tilt-90))*sin(kreis_ang.pan);
my.z=5;

wait(1);
}



Is it that what you mean?


Hilf mir, dir zu helfen!