hi...eughhh can anyone help me....i wanna wrapped the camera to my models head/eyes and the camera should focus to where ever the heads toward to..(heeheh sorry my english is bad)i try "vec_set(camera.pan,my.pan)" but the camera just focus ahead, it didn't follow the heads movement then i try something else, i use bones for the animation and try to put the camera with my bones head...but then all i see is my model foot...i screw up didn't i....heheeh...well if there's someone who would share some code to me , i reallllyyyy apreciated.....
To set the position of the camera to the head, and make it follow it constantly use 'vec_set' in a 'while' loop. Don't forget a 'wait(1)' command at the end of the loop.
you can set the camera on a vertex and then you can make the camera look to another vertex (e.g nose vertex). here an example: var tt; var zz; while(1) { vec_for_vertex(tt,my,421); //back vertex of the head vec_for_vertex(zz,my,1094);//vertex of the nose vec_set(camera.x,zz); vec_sub(tt,camera.x); vec_to_angle(camera.pan,tt); wait(1); }