edit: as others point out, this isn't quite the first time. but it is the first time in a long time!
edit: as others point out, this isn't quite the first time. but it is the first time in a long time!
http://www.isas.jaxa.jp/e/enterp/missions/ikaros/index.shtml
IKAROS, launched by JAXA in 2010, passed Venus six months later in is still accelerating (slowly; it's getting about 1mN of thrust). It's even steerable, by using LCD panels in the sails to change the albedo. It was last contacted early this year. IKAROS' sail is 20m diagonal, which makes it considerably larger than LightSail1.
There are even pictures of it --- it ejected a camera after deployment.
So this doesn't validate the theory, correct? (Is it actually validated yet?)
Is this a viable method for long-distance traveling? Is it limited in direction (like the photons only push one way, and it's not like you can use a rudder in space, right?)
Yes, it's viable. http://en.wikipedia.org/wiki/Solar_sail
not very general-purpose, but sound in principal.
Orbital mechanics is fun :).
If you are at rest 1 au from the sun, and you deploy your sail perpendicular to sunlight, which direction will you accelerate in?
Of course, no spacecraft will ever be at rest with regards to the Sun -- it would take 30km/s of delta-v to get there, and there's rather little point. They will be orbiting, starting from leo, which means that the meagre acceleration from a sail is more than enough to get basically anywhere.
If you angle the sail to send light in front of you, you will speed up and fall towards the Sun. If you angle the sail to send light behind you, you will slow down and move away from the Sun. Aim to either side and you will move away from the light and also move up slightly. Between these effects you can manage to get from any orbit you might be in to any other possible orbit. It will just take a while.
This is all assuming that there is not enough force from reflecting the light back into the Sun to beat the Sun's gravity.
Don't you mean slow down and fall towards the sun?
If the reference frame is initially rotating at with your orbit or a closer one, "speed up" is accurate. If it's rotating with some more distant orbit, "slow down" is accurate.
This, by the way, is one reason why physicists tend to just say "accelerate" in both cases: then, it's technically true for any external reference frame.
If you have 2 objects in the same orbit and one accelerates backwards, that one winds up below and in front of the first. This happens because accelerating backwards causes it to lose energy, so it falls, and in falling picks up more kinetic energy than it had before.
Please consider implementing gravity for the planet and perhaps a time scale option.
There's gravity from the sun but not the planet, and yes, that ought to be worth adding. I'm not sure what'd help the most to turn this into a fun game, though, so I'm working on other things. Thanks for the suggestion; a time control's probably a good idea too.
Some important limitations to keep in mind with solar sails are that the momentum imparted on them tails off according to an inverse square law, and also that since they have no medium like water to push against (hence no rudder), you can't "tack into the wind" like a sailboat can. However, and this is a very important point, because of the way orbital mechanics works out, and assuming you can adjust your orientation of the sail on the fly, this matters less than you might think, e.g. imagine orienting your sail at apoapsis so that you create a net thrust in the retrograde direction, then you furl or orientate your sail edge-on to the Sun. You end up with an orbit that has a periapsis closer to the Sun (with an apoapsis further out), so you're still traveling inward in some sense, at least for part of your orbit.