Link dts to another dts
by Maurice Changy · in Technical Issues · 04/11/2007 (11:49 am) · 2 replies
Hello
In my game I need to link 2 dts objects. One is a sphere (the earth) and the other is for example the Effeil Tower.
I export the sphere with a dummy called mount0.
I import it in the game as StaticShape. But I don't have access to the moutImage method.
Moreover , the Eiffel Tower must be animated.
The Eiffel Tower have to move when the Earth move.
How can I proceed ? Thanks for help myself.
In my game I need to link 2 dts objects. One is a sphere (the earth) and the other is for example the Effeil Tower.
I export the sphere with a dummy called mount0.
I import it in the game as StaticShape. But I don't have access to the moutImage method.
Moreover , the Eiffel Tower must be animated.
The Eiffel Tower have to move when the Earth move.
How can I proceed ? Thanks for help myself.
#2
Just like a player Mounts a vehicle. The vehicle and the player both animate.
As well, When the player picks up a weapon. The weapon still animates. The player still animates.
08/08/2007 (8:27 am)
Hmm.. Anything mounted to anything should follow what it is mounted to.Just like a player Mounts a vehicle. The vehicle and the player both animate.
As well, When the player picks up a weapon. The weapon still animates. The player still animates.
Torque Owner Maurice Changy
I'm not an expert of the TGE SDK but an idea comes this afternoon when I search a response on the GG site.
I found this link who explains how to build a Tickable object.
Before trying to implement my method , I give you and want anybody to tell me if I'm right or wrong.
- create a Tickable object class for the earth
- create a list of item or other shapebase inside the class
- in the processtick function move all object in the list
In other game engine, like Irrlicht, it exists a property for each sceneNode called Parent which allow to link easily objects. And when you move the parent , all children move whit him.
What is the best way to reproduce this behaviour in Torque game engine.