Original Post
I''m trying to make a field of stars on a 2D plane move appropriately under a ship based on the ship''s direction and speed. I have succeeded in doing that by getting a list of COS/SIN values that have been projected at 10-degree increments and multiplying appropriately.
The problem is that my top speeds don''t adjust for X,Y based on direction. For example, let''s say that the top speed of my ship is 1.0, that *should* mean the following (taken at full thrust and top speed):
0-degrees(Due North): x=0, y=1.0
10-degrees: x=.1, y=.9
20-degrees: x=.2, y=.8
...
90-degress(Due East) x=1.0, y=0
etc..
I''d like to have the ships have different top speeds and different thrust values for those speeds and real-time modifiers (like a booster, etc.).
Hopefully this description makes sense. I''m going to keep digging, but if anyone knows the calculation for how to do this I''d appreciate the help!
-Krylar
Christian Coders Network