Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Attaching an entity to another one #149744
08/23/07 00:20
08/23/07 00:20
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
Hi,
How can i attach an entity (a gun) on a particular vertex on another entity (a guy) ?

Thanks


Thrones of Ragnarok -Under Construction
Re: Attaching an entity to another one [Re: Devious_Duck] #149745
08/23/07 01:26
08/23/07 01:26
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Look at the manual!

Use vec_for_vertex. That should be what you're looking for.

But if you're looking to match the gun's pan, tilt, and roll with the arm's, then you'll need to do some calculations (vec_for_vertex doesn't do that automatically).


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Attaching an entity to another one [Re: MrCode] #149746
08/23/07 01:32
08/23/07 01:32
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
Thanks !
I looked in the manual, but its hard to find a function when you have no idea how its called, or if it even exists.

Thanks again.


Thrones of Ragnarok -Under Construction

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

Gamestudio download | chip programmers | 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