simple circle-line collision/physics

BlitzMax Forums/BlitzMax Programming/simple circle-line collision/physics

dXter(Posted 2007) [#1]
Okay, I've been looking ALL over the web for a simple explanation of how to do circle vs. line collision detection and response. I'd also be grateful for a circle vs. circle collision response method, as the one I have now doesn't work very well. Circles need to have mass (i.e. not all circles have the same mass), and I'd like to include friction and bounciness in my simple engine also.
I don't need anything other than circles and lines, although i hope to later look into converting this into a verlet-like system, but that's probably far from now.....


Rimmsy(Posted 2007) [#2]
http://blitzbasic.com/codearcs/codearcs.php?code=998

I've adapted that one into bmx, it's quite easy to get some kind of mass/friction going on there.

I'd post my port but it's well and truly buried under other stuff.