• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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