Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

How to negate gravity with a missile (forward thrust only)?

$
0
0
I'm trying to miniaturize my intercept script from a drone into a missile. In order to drop excess weight to increase acceleration and decrease time to target, I want to drop all but forward-propelling thrusters. As such, I need to figure out how to negate gravity (and drift). What is the algorithm I need to calculate this? For example, currently I'm working on this:
Code:
		 /
	       / V
	a -> /
F ->	M> ---------------------> []
	|	     d		   T
	v
	g
F = ma
a = f/m
g =...

How to negate gravity with a missile (forward thrust only)?

Viewing all articles
Browse latest Browse all 645

Trending Articles