Hacker News new | ask | show | jobs
by barbegal 2227 days ago
Definitely cheating, it's not autopilot. It is just updating your co-ordinates every 500ms on a straight line.

I would like to see a real autopilot written in javascript that you can paste into the console.

2 comments

I wrote an autopilot[0] for the simulator in JS, which sends key events to the game.

[0]: https://gist.github.com/ForestKatsch/01069f29e8316df11774025...

This is awesome! As a recent student of PIDs, it's even better after uncommenting the createPidDisplay statement on line 566 :)

Only feature request is a 'Do a Barrel Roll!' button.

It's cheating but not as much. It's setting the "motion vector" aka setting the speed at current instant. It's just skipping the controls which are normally setting the "motion vector". For the orientation it's totally cheating though using camera.lookat(target).