A non-transitory computer-readable storage medium storing an information processing program to be executed by a computer of an information processing system for setting a predetermined setting object in a virtual space based on an attitude of a controller device, the information processing program causing the computer to execute:
- calculating the attitude of the controller device in the virtual space;
- and
- setting a direction of the setting object with respect to a vertical direction in the virtual space when a specified direction, which is determined by the attitude of the controller device, is closer to a horizontal direction in the virtual space than a predetermined reference, and setting the direction of the setting object with respect to a predetermined direction of the controller device when the specified direction is closer to the vertical direction than the predetermined reference.