By default the turtle begins pointing along the X axis with the "right" direction along the -Y axis and the "up" direction aligned with the Z axis. You can give a direction vector for the state input ...