Updatede Actor.hit to take origin into account.
Added unit-test project.