But what I want is to set "Bone" from the axe entity (my) to the position of the "righthand" position (so not the just the pivot-point of the axe model (my). How can I do that?
Re: connect 2 bones (with ang and vec)
[Re: Toon]
#404673 07/12/1216:2007/12/1216:20
In most games this is done by setting the axe into the correct pos and then applying it to the right hand bone. Normally weapons have no "pos-bones" except for gunbrasses and so on. The code you need you already have. ^^
Code:
VECTOR _p,_a;
vec_for_bone(_p, ThePlayer, "Righthand");
ang_for_bone(_a, ThePlayer, "Righthand");
vec_set(Axe.x, _p.x); //set the axe to the right hand
vec_set(Axe.pan, _a); //and rotate it with the animation of the bone
regards
Last edited by rayp; 07/12/1217:32.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;