vec_for_bone(VECTOR*,ENTITY*,STRING*)

calculates the current position of a bone hinge in world coordinates.

Parameters:

vector* to be set to the hinge position
entity* model entity pointer
string* bone name

Modifies:

vector*

Speed:

Medium

Example:

vec_for_bone(temp,your,"leg");
vec_set(my.x,temp); //set the my entity at the position of the you entities' knee

See also:

vec_for_vertex, vec_for_mesh, vec_to_mesh, vec_for_min, vec_for_max