A non-transitory storage medium having stored therein an information processing program for causing an information processing device to provide execution comprising:
- calculating a position of a destination of a virtual camera in a virtual space, based on predetermined information processing;
- moving the virtual camera to an avoidance position at which a shielding object is avoided, in a case where (a) a first vector heading from a position of an object to be captured by the virtual camera to the position of the destination, intersects with the shielding object from an outside of the shielding object in the virtual space and (b) a second vector heading from the position of the destination to the position of the object to be captured by the virtual camera, does not intersect with the shielding object from the outside of the shielding object in the virtual space;
- and
- generating an image of the virtual space, based on the moved virtual camera.