摘要 |
PROBLEM TO BE SOLVED: To provide a program capable of controlling orientation with reality according to a distance from a character to an orientation object, in an action game in which the character operated by a player brings down an enemy character or the like.SOLUTION: For the orientation object existing inside an orientation area, a distance L from the character to the orientation object is acquired, a changeable angle r per frame by the distance L and an angle C desired to be actually moved are calculated, respective joints connecting the head, neck, chest, abdomen and hips of the character are rotated by a predetermined angle each so that C is within a range of r, and thus an orientation speed is controlled for each frame. |