Computer Science Canada [Module] Collision 2 |
Author: | Aange10 [ Tue Jan 31, 2012 7:05 pm ] | ||
Post subject: | [Module] Collision 2 | ||
Reposted with permission (so it will be much neater): Features
This Collision module includes algorithms for detecting Collision for a variety of situations. This Module's functions are shown under Syntax. How it Works
Essentially, the module will take in coordinates that you input between any two objects (or points) and see if they are within collision range. Syntax
The syntaxes are as followed:
Instructions
Simply import the file at the top of the program, and access to all of these methods will be yours. Call the methods with syntax given above. To import the file, simply place the Collision.tu file into the file of whatever project you are working on, and at the top of your sourcecode (on the VERY FIRST line) type "import "Collision.tu" The Module
The module is attached below. Working Example
A working example is also attached below. |