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.