adamleesaintfrancis / spacewar

Automatically exported from code.google.com/p/spacewar
0 stars 0 forks source link

Odd bullet behavior #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Only happened once with my GA, but can reproduce with project 0 human agent
2. Clear screen of most obstacles
3. Get ship going at a high speed
4. Turn around approximately 180 degrees and fire

What is the expected output? What do you see instead?
Instead of going in the direction you are facing, bullets chase after the
ship, 

i.e., if you are going to the right really fast, then turn the ship 180
degrees to the left without affecting speed (don't use the thrusters, just
turn) and fire, instead of flying to the left, since you are facing that
way, bullets fly to the right.

Not so much a bug, since you have to be moving at high speeds for it to
happen, but it was interesting to see how the vectors were interacting to
give the bullets their direction.

What version of the product are you using? On what operating system?
Current on Vista

Please provide any additional information below.

Also, please cc: jfager on any new issues that are opened!  Thank you!

Original issue reported on code.google.com by a1tetris...@gmail.com on 30 Mar 2008 at 8:54

GoogleCodeExporter commented 9 years ago
That's just how physics works.  The velocity relative to the ship should be 
correct
(that is, the bullet and the ship should move away from each other at the same 
rate,
provided you aren't accelerating the ship).

Original comment by jfa...@gmail.com on 31 Mar 2008 at 9:29