Gamestudio Links
Zorro Links
Newest Posts
Zorro strategy fails to run
by Lapsa. 12/06/26 17:32
ZorroGPT
by mistery. 12/05/26 12:48
contractUpdate() is filtering if >2 rows
by mistery. 12/04/26 19:03
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Lapsa, Quad), 2,483 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,128
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,128
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