Hello again,
I am trying to find the angle between two vectors:
Code:
VECTOR vec1,vec2;
var dist1,dist2;
function tram_tam(){
ANGLE angle;
while(1){
vec_diff(vec1,mouse_position,center_of_screen);//I know the coords of center_of_screen vector, and mouse_position always changes depending on where I move the mouse
vec_diff(vec2,vector_to_right,center_of_screen);//
vector_to_right has also fixed coordiantes and it is 150 quants to the right from center_of_screen
dis1 = vec_dist(center_of_screen,mouse_position);
dist2 = vec_dist(center_of_screen, vector_to_right);
angle = acos((vec_dot(vec1,vec2))/(dist1*dist2));
wait(1);}
}


And all the time I get an error "cannot convert FIXED to 'struct ANGLE'" or "cannot convert FIXED to DOUBLE"
How to deal with it? Does anyone use the same formula to find an angle? Help please....


a generator of dull questions smile