Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to fire correctly based on heading of an aircraft?

Status
Not open for further replies.

gues

IS-IT--Management
Mar 1, 2005
2
0
0
AT
I'm working on creating a game similar to the old atari game, Asteriods. I am able to rotate the aircraft, increase and decrease its speed. When the aircraft fires, the bullet is headed only in one direction at 0 degrees regardless of what angle the aircraft is pointed to. For example, If i rotated the aircraft to 45 degree right, and press the keypad to fire. The bullet flies at 0 degree, not at 45 degree.

Is there a specifc way to tell this behavior to fire depending on where the heading of the aircraft is located. FYE, using rotation of the bullet does not make a difference, it still travels at 0 degrees.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top