Awhile ago I was struck with the idea of using dynamic lines to detect collision. Lines can be stored many ways, such as with point-slope, standard, and slope-intercept form, but I chose the latter. The following is an example of a simple game using this concept of collision:
http://www.hiveworkshop.com/forums/maps-564/blitzkrieg-149977/
The code is JASS, but I will happily explain to anybody. It isn't as thoroughly annotated as I would've hoped, but I do believe it is quite efficient.
I welcome and commentary and criticism.
Jeth.
http://www.hiveworkshop.com/forums/maps-564/blitzkrieg-149977/
The code is JASS, but I will happily explain to anybody. It isn't as thoroughly annotated as I would've hoped, but I do believe it is quite efficient.
I welcome and commentary and criticism.
Jeth.