Collision determination program and collision determination apparatus
First Claim
1. A computer-readable storage medium having a collision determination program stored thereon for determining whether or not a first object and a second object have collided against each other in a virtual space displayed on a display, the collision determination program causing a computer to execute:
- an updating step of updating position information of the first object or the second object stored in a storage device;
a first setting step of setting a collision determination area for the first object, the collision determination area having a shape different from the shape of the first object and having a size or a position in accordance with a state of the first object or a state around the first object, wherein the size or the position of the collision determination area is selected from a group of predefined sizes or predetermined positions for the first object, wherein each of the predetermined sizes or the predetermined positions for the first object corresponds to a different one of predetermined states of the first object or predetermined states around the first object, and the state of the first object or the state around the first object is one of the predetermined states;
a second setting step of setting a collision determination area for the second object; and
a collision determination step of determining whether or not the first object and the second object have collided against each other by determining whether or not the collision determination area set for the first object in the first setting step and the collision determination area set for the second object in the second setting step overlap each other.
1 Assignment
0 Petitions
Accused Products
Abstract
A collision determination area set for a dog as an object in a virtual three-dimensional space is, for example, a sphere having the center at the chest of the dog and having a radius of 30 in the “on all fours” state, a sphere having the center at the hip of the dog and having a radius of 10 in the “standing” state, and a sphere having the center at the head of the dog and having a radius of 10 in the state of the dog “trying to fawn with another dog” in the virtual three-dimensional space. Using the collision determination area set in this manner, it is determined whether or not the dog has collided against another object. Therefore, a collision determination suitable to individual situations can be realized while suppressing an increase in the amount of calculations required for the collision determination.
-
Citations
12 Claims
-
1. A computer-readable storage medium having a collision determination program stored thereon for determining whether or not a first object and a second object have collided against each other in a virtual space displayed on a display, the collision determination program causing a computer to execute:
-
an updating step of updating position information of the first object or the second object stored in a storage device; a first setting step of setting a collision determination area for the first object, the collision determination area having a shape different from the shape of the first object and having a size or a position in accordance with a state of the first object or a state around the first object, wherein the size or the position of the collision determination area is selected from a group of predefined sizes or predetermined positions for the first object, wherein each of the predetermined sizes or the predetermined positions for the first object corresponds to a different one of predetermined states of the first object or predetermined states around the first object, and the state of the first object or the state around the first object is one of the predetermined states; a second setting step of setting a collision determination area for the second object; and a collision determination step of determining whether or not the first object and the second object have collided against each other by determining whether or not the collision determination area set for the first object in the first setting step and the collision determination area set for the second object in the second setting step overlap each other. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A collision determination apparatus for determining whether or not a first object and a second object have collided against each other in a virtual space displayed by display, the collision determination apparatus comprising:
-
the display; a storage device storing position information of at least the first object and the second object; updating means for updating the position information of the first object or the second object stored in the storage device; first setting means for setting a collision determination area for the first object, the collision determination area having a shape different from the shape of the first object and having a size or a position in accordance with a state of the first object or a state around the first object, wherein the size or the position of the collision determination area is selected from a group of predefined sizes or predetermined positions for the first object, wherein each of the predetermined sizes or predetermined positions for the first object corresponds to a different one of predetermined states of the first object or states around the first object and the state of the first object or the state around the first object is one of the predetermined states; second setting means for setting a collision determination area for the second object; and collision determination means for determining whether or not the first object and the second object have collided against each other by determining whether or not the collision determination area set for the first object and the collision determination area set for the second object overlap each other.
-
-
12. A computer-readable storage medium having a collision determination program stored thereon for determining whether or not a first object and a second object have collided against each other in a virtual space displayed on a display, the collision determination program causing a computer to execute:
-
an updating step of updating position information of the first object or the second object stored in a storage device; a first setting step of setting a collision determination area for the first object, the collision determination area having a shape different from the shape of the first object and having a size or a position different in accordance with a posture of the first object or an action pattern of the first object, wherein the size the position of the collision determination area is selected from a group of predefined sizes or predetermined positions for the first object, wherein each of the predetermined sizes or predetermined positions for the first object corresponds to a different one of a predetermined postures of the first object or a predetermined action pattern of the first object, and the posture of the first object or the action pattern of first object is one of the predetermined postures or action pattern; a second setting step of setting a collision determination area for the second object; and a collision determination step of determining whether or not the first object and the second object have collided against each other by determining whether or not the collision determination area set for the first object in the first setting step and the collision determination area set for the second object in the second setting step overlap each other.
-
Specification