Static and Non-Static objects.
by Kevin Summers · in Torque Game Engine · 11/07/2007 (11:15 am) · 0 replies
I have an interesting dilema.
I've worked up the script code to create a solar system with planets that follow
an orbit. Basically running through a timed section of code that calculates the planet's
next X, Y coordinates and then sets the transform for the object.
The problem I'm having is what type of object should I use for this?
TSStatic can't be moved, so that doesn't work.
Item can be moved, but items are subject to gravity. I could change that but I don't
want to create more work for myself when I take the player back to land.
StaticShape seems ok so far, although that has changed the lighting of the objects.
The planets are DTS shapes that I'm just going to manipulate their position and rotation.
Any suggestions?
I've worked up the script code to create a solar system with planets that follow
an orbit. Basically running through a timed section of code that calculates the planet's
next X, Y coordinates and then sets the transform for the object.
The problem I'm having is what type of object should I use for this?
TSStatic can't be moved, so that doesn't work.
Item can be moved, but items are subject to gravity. I could change that but I don't
want to create more work for myself when I take the player back to land.
StaticShape seems ok so far, although that has changed the lighting of the objects.
The planets are DTS shapes that I'm just going to manipulate their position and rotation.
Any suggestions?