Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, USER0328), 6,340 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
connect 2 bones (with ang and vec) #404671
07/12/12 16:06
07/12/12 16:06
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
okay...I got this code to work:

Code:
vec_for_bone(axe_vec.x,player,"righthand");
ang_for_bone(axe_ang.pan,player,"righthand");
vec_set(my.x,axe_vec);
vec_set(my.pan,axe_ang);



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/12 16:20
07/12/12 16:20
Joined: Jul 2008
Posts: 2,111
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,111
Germany
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/12 17: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;

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1