Lolasaurus
Member
Hey Guys,
I'm using some trig functions to simulate a rocket orbit around earth. Changing the direction of the rocket and applying thrust then changes the orbit shape and size etc.
I am using the SOHCAHTOA principles to achieve this, however in places, often as vspeed crosses over 0, the rocket suddenly shoots off away from the planet. I'm guessing this is because gamemaker has an inverted y axis and so the vertical speed must be switched, however doing so doesn't give me a better result.
Is there something more I'm missing? If i need to post some code i can do so, I just had little time to write this up.
Thanks in advance everyone,
Lolasaurus
I'm using some trig functions to simulate a rocket orbit around earth. Changing the direction of the rocket and applying thrust then changes the orbit shape and size etc.
I am using the SOHCAHTOA principles to achieve this, however in places, often as vspeed crosses over 0, the rocket suddenly shoots off away from the planet. I'm guessing this is because gamemaker has an inverted y axis and so the vertical speed must be switched, however doing so doesn't give me a better result.
Is there something more I'm missing? If i need to post some code i can do so, I just had little time to write this up.
Thanks in advance everyone,
Lolasaurus