I'll give you more details. I'm trying to attach a full helmet into my character's head correctly, even if he permorfs a backflip jump. Here is the code I use in the helmet action:
Code:
while(1)
{
VECTOR vec_nape;
VECTOR vec_nose;
VECTOR vec_dir;
ANGLE temp;
vec_for_vertex(vec_nape,Gnome,750); //nape vertex
vec_for_vertex(vec_nose,Gnome,772); //nose vertex
vec_diff(vec_dir,vec_nose,vec_nape); //face orientation
//sets the helmet direction same as character's head direction
vec_to_angle(my.pan,vec_dir);
//then move the helmet position into character's head position
vec_scale(vec_dir,0.35);
vec_add(vec_dir,vec_nape);
vec_set(my.x,vec_dir.x);
wait(1);
}
It works great at most animations but not at those which the model performs a rotation around the Y-axis. It seems like the helmet isn't able to rotate more than 90º or less than -90º around the Y-axis. Then I read at SED Command Help:
Range:
pan: 0 .. 360
tilt: -90 .. +90
roll: 0 .. 360
But I've tested the action using only the "my->tilt += time_step;" line code and the helmet performs a 360º rotation around the Y-axis, so is tilt range: 0 .. 360? I hope you understand me, I'm kinda lost here