![]() |
Kale
|
The Math module of Kale has a few different geometrical objects capable of collision detection:
All of these inherit from the Geometry class. All but rays can get bounding boxes (rays are infinite), and all have collision detection methods coded for testing with eachother. Where possible, it is recommended to use bounding boxes for collision detection prior to using any other methods as they are the cheapest in terms of performance.