Patent ID: 8241120

Claim:
A non-transitory computer readable medium storing a computer program for a video game in which a camera coordinate system is set for a position of a camera disposed in a three-dimensional game space and in which a moving object moving in the three-dimensional game space is displayed on an image display unit, the computer program comprising: code for causing a control unit to recognize point-of-sight position data indicating where a point-of-sight of the camera is; code for causing the control unit to recognize point-of-target position data indicating where a point-of-target of the camera is; code for causing the control unit to recognize a view-frustum region which extends in a direction from the point-of-sight indicated to the point-of-target; code for causing the control unit to recognize an intra-view-frustum region which is within the view-frustum region; code for causing the control unit to determine whether or not the moving object is located within the intra-view-frustum region; code for causing the control unit to move at least one of the point-of-sight and the point-of-target in order for the moving object to be located within the intra-view-frustum region, if the control unit determines that the moving object is not located in the intra-view-frustum region; code for causing the control unit to compute a first-directional vector based on the point-of-sight position data and the point-of-target position data, the first-directional vector being in a first direction from the point-of-sight to the point-of-target; code for causing the control unit to compute a second-directional vector based on the point-of-sight position data and the moving-object position data, the second-directional vector being in a second direction from the point-of-sight to the moving object; code for causing the control unit to determine whether or not the first direction and the second direction match; and code for causing the control unit to stop at least one of the point-of-sight and the point-of-target from moving, if the control unit determines that the first direction and the second direction match.