• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Using Linear Equations for Collision Detection

Status
Not open for further replies.
Level 6
Joined
Aug 15, 2007
Messages
209
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.
 
Status
Not open for further replies.
Top