• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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