Advertisement

The AI in my game engine tries to learn to fly a space ship (video)

Started by May 23, 2013 11:18 PM
8 comments, last by Vexal 11 years, 5 months ago

This is the result of putting an AI in the ship that attempts to keep the ship level when balls are thrown at it. The ship has 13 thrusters total, which the AI fires off to apply torque to attempt to counteract its change in orientation and velocity. The results are amusing.

This is the result of putting an AI in the ship that attempts to keep the ship level when balls are thrown at it. The ship has 13 thrusters total, which the AI fires off to apply torque to attempt to counteract its change in orientation and velocity. The results are amusing.

It was doing so well! :(

Advertisement

It was doing so well! sad.png

Yeah, it seemed like it was doing better at the beginning.

I was trying to make a PID controller for keeping it level, but it's not stable so it begins to oscillate further and further until it passes a threshold and explodes.

You need some serious damping there.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Impressive. Unstable equilibrium FTW! The explosion at the end is strangely fitting.

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

Advertisement

I'll post an update once I get the kinks out.

Show that to someone who's scared of flying and then tell him "don't worry, we're on autopilot!"

It's perfect. Who's ever had a giant ball thrown at them while they piloted a hovering spaceship? I bet that same thing happens.

I've read about the idea guy. It's a serious misnomer. You really want to avoid the lazy team.

Some ships will crash when just a bird hits them!

This topic is closed to new replies.

Advertisement