2D Spaceship movement math
Posted
by YAS
on Stack Overflow
See other posts from Stack Overflow
or by YAS
Published on 2010-05-23T02:34:58Z
Indexed on
2010/05/23
2:40 UTC
Read the original article
Hit count: 364
Hi, I'm new here.
I'm trying to make a top-down spaceship game and I want the movement to somewhat realistic. 360 degrees with inertia, gravity, etc.
My problem is I can make the ship move 360 with inertia with no problem, but what I need to do is impose a limit for how fast the engines can go while not limiting other forces pushing/pulling the ship.
So, if the engines speed is a maximum of 500 and the ship is going 1000 from a gravity well, the ship is not going to go 1500 when it's engines are on, but if is pointing away from the angle is going then it could slow down.
For what it's worth, I'm using Construct (www.scirra.com), and all I need is the math of it.
Thanks for any help, I'm going bald from trying to figure this out.
© Stack Overflow or respective owner