PDA

View Full Version : Basic 2D collision, Ray-Rectangle, Point-Rectangle



Petr Schreiber
22-11-2008, 13:31
Hi,

it will take some time before some new collision routines will be integrated to TBGL.
To not block your creativity till that time I want to share with you some 2D routines, in form of thinBasic include.

It is basic Ray-Rectangle and Point-Rectangle collision.

The include file comes with little demo program, nothing fancy but can give you idea how to use it within entity system.


Petr