renamed direction vector to trajectory

Also renamed facing variable to direction instead and updated
affected methods