Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Blightie
Dec 27, 2004
Well I have been working on my first major undertaking on XNA, I am trying to get a little spaceflight game going with Newtonian physics. I am having a bit of an issue and was wondering what the best solution to this problem was (I'm a spare time coder, but I am an engineer so maths is not a worry).

Anyway, my issue is with say thrusters on the ship. I can handle doing the physics calculations given say a direction vector but what is the best way to get (and keep) a direction vector for the thrust as the ship rotates?

The way the thing is meant to work is that a given ship will have thrusters in specific locations that can either rotate the ship or force it in various directions. I am just having trouble working out the best way of achieving something like this. My attempts so far have been well less than great and someone here probably knows a lot more than I do. Along with this problem, what would be the best (ie fastest or easiest) way of keeping a ships turrent in the right spot and facing the right way?

Summary: Help with 3d direction vectors for a spaceship's thruster.

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply