hi! I used vec_for_vertex to get the target position in the body for the head but it seams that the head just stays on above the body and is not attached to it. Please help.
function frog_body()
{
var temp2;
bodymodel = my;
my.pan = -75; // face the camera
while(1)
{
vec_for_bone(temp, bodymodel, "chest");
ang_for_bone(temp_angle, bodymodel, "chest");
vec_for_vertex(temp2,bodymodel,6393);
vec_set(head_ent.x,temp.x);
vec_set(head_ent.x,temp2);
vec_set(head_ent.pan,temp_angle);
walk_speed += 2 * time_step; // increase walk_speed, "2" sets the animation speed
ent_animate(my, "run", walk_speed, ANM_CYCLE); // animate the model (use "jump")
wait(1);
}
}