I have a game and I'm building a control-interface (not an interface-structure, but more along the lines of what a steering-wheel, gas pedal and brake pedal are to a car) to be used by the AI and the human players to control objects (i.e. units) within the game. The question is whether to set the speed and the turn rate manually or to use forces/torques and apply them along certain vectors depending on the direction that the player is currently facing?
I think that setting the speed and turn rates manually would eventually give way to a huge overhead as I try to implement listeners and write algorythms to do the same thing that Box2D is already doing. Going the other way has the distinctive possibility of making the game seem populated by a bunch of epileptics... especially when I start adding in reactions to attacks and other fun stuff.
It may be that there isn't an easy answer and that either way has its benefits and drawbacks. I would prefer the direction of least resistance, but at this point, I'm not sure what that will be.
Oh, and for those who are wondering if there is anything else I'm leaving out: there isn't. 😎 Without some mechanism for moving a unit/character around, there isn't much of a game.
Thanks,
-CodePaladin
p.s. I had considered impulses, but the calculations required to maintain a steady speed were a little much... especially if there was anything more than a single unit being moved around
I think that setting the speed and turn rates manually would eventually give way to a huge overhead as I try to implement listeners and write algorythms to do the same thing that Box2D is already doing. Going the other way has the distinctive possibility of making the game seem populated by a bunch of epileptics... especially when I start adding in reactions to attacks and other fun stuff.
It may be that there isn't an easy answer and that either way has its benefits and drawbacks. I would prefer the direction of least resistance, but at this point, I'm not sure what that will be.
Oh, and for those who are wondering if there is anything else I'm leaving out: there isn't. 😎 Without some mechanism for moving a unit/character around, there isn't much of a game.
Thanks,
-CodePaladin
p.s. I had considered impulses, but the calculations required to maintain a steady speed were a little much... especially if there was anything more than a single unit being moved around