Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Quad, VoroneTZ, PeroPero), 841 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
need advices (for relative modle?) #284477
08/13/09 13:56
08/13/09 13:56
Joined: Jun 2009
Posts: 8
ChongQing,China
J
jockerob Offline OP
Newbie
jockerob  Offline OP
Newbie
J

Joined: Jun 2009
Posts: 8
ChongQing,China
Guys, I have a question here I can't figure it out myself.

That is, how to make a relative model.

What I mean is something like a wheel of a vehicle, or a weapon on one's hand, or a flying sprite around someone.

How should i made these? I want them to behave relatively to the father entities.
For instance of the wheel, I want it to roll when I press accelerate, and it may turn left or right.
But all these actions are around certain "axis", it's relative to the vehicle, the wheel and the vehicle are not as a whole.
You can not model them as a whole(of couse you can model them as a whole, but then you have to model a "car run" animation, and "car turn" animation, that is stupid, and is wasting time, CPU power).

For instance of the weapon(Let's make it a gun).
I want it to be hold by the character.
It should appear always in his hand, and vary its pointing as the character swing the hand.

God! how should I make these? How do I define the "ent_creat" position relatively? I have look for the Manual, and all I know is to creat entity by
"ent_create(STRING* filename, VECTOR* position, function);"

but the "position" here means the absolute postion.
How do I make the entity relatived to something?


Thank you for your viewing.

Re: need advices (for relative modle?) [Re: jockerob] #284552
08/13/09 21:27
08/13/09 21:27
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
vec_for_vertex is the instruction that you are looking for.

http://www.conitec.net/beta/aent-vec_for_vertex.htm


Moderated by  HeelX, rvL_eXile 

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