Posted By: Polypfreak1987
vec_for_vertex problem - 06/13/09 16:19
Hello everybody,
I have a tricky problem. I have the following script:
But when I am going to test the programm I got the following error:
Error E1515: Invalid arguments in stange1: vec_for_vertex(zpos1.x,zug,41)
Error E1515: Invalid arguments in stange1: vec_for_vertex(zpos2.x,zug,41)
I don't know what the problem is, and I can't find the problem.
I hope you can help me.
Thanks in advance.
Greetings,
Polypfreak1987.
I have a tricky problem. I have the following script:
Code:
entity* zug; action pp_bol { var zz; zz = my.z; zug = my; while(1) { my.z = zz+9.6-hubring*-14-10; my.pan = molen.pan+100; my.tilt = 26*hubring*sin(exzenter_pos+molen.pan); my.roll = 26*hubring*cos(exzenter_pos+molen.pan); wait(1); } } function stange1() { var zpos1[3]; var zpos2[3]; vec_set(my.scale_x,vector(1.200,0.800,0.800)); proc_late(); while(1) { vec_for_vertex(my.x,you,87); vec_for_vertex(zpos2.x,you,87); vec_for_vertex(zpos1.x,zug,41); vec_for_vertex(zpos2.x,zug,41); vec_lerp(temp.x,zpos1.x,zpos2.x,0.0); vec_diff(temp.x,temp.x,my.x); vec_to_angle(my.pan,temp.x); wait(1); } }
But when I am going to test the programm I got the following error:
Error E1515: Invalid arguments in stange1: vec_for_vertex(zpos1.x,zug,41)
Error E1515: Invalid arguments in stange1: vec_for_vertex(zpos2.x,zug,41)
I don't know what the problem is, and I can't find the problem.
I hope you can help me.
Thanks in advance.
Greetings,
Polypfreak1987.