Posted By: CocaCola
how to divide Vector? - 06/09/16 12:41
Hello,
IŽd tried to divide 2 vectors, but it doesenŽt work.
I get a E1513 Error. but I see the you model with I created
What is wrong?
IŽd tried to divide 2 vectors, but it doesenŽt work.
I get a E1513 Error. but I see the you model with I created
What is wrong?
Code:
VECTOR* temp; VECTOR* temp2; CONTACT* c = ent_getvertex(you,NULL,i); CONTACT* c2 = ent_getvertex(you,NULL,i-2); while (1) { if(key_space){ while(key_space)wait(1); vec_set(temp.x,c2.x); vec_set(temp2.x,c.x); temp.x /=temp2.x; temp.y /=temp2.y; temp.z /=temp2.z; } wait(1); }