- Category:
- assembly language
- Tags:
-
- File Size:
- 62kb
- Update:
- 2018-01-06
- Downloads:
- 0 Times
- Uploaded by:
- Lin
Description: Basic concept description
The code above is useful for checking conflicts between units (such as friendly planes and enemy missiles) when making 2D-based games.
The basic principle of this code is to use the center distance and the sum of the radii of two circles. The distance between the centers of the two circles can be found by the Pythagorean theorem. If the sum of the radii of the two circles is greater than the center distance, the object is considered as a collision (If you do not know, you can see the illustrations)
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
Basic Collision Checking.doc | 124928 | 2018-01-06
|
day2.cpp | 1113 | 2018-01-06
|
day2.exe | 28672 | 2018-01-06 |