Collision detection
cbxI have gotten a basic phisics simulator to work but now I need a function that will return true or false weather or not a circle and rectangle have collided. I already know how to detect circle-circle and rect-rect collisions. for example [code]Dim Ret as Boonean Ret = DetectCollision(Circle, Rect)[/code] The function does not have to be absoluetly acurate it just has to be ... believable. Has any one seen a function out there that would do this. BTW the collsition detection is in 2d so i don't need 3D although it might help. Or no that I think of it has anyone seen a 2d triangle collision detector? THat would probubly help just as much.
BrykovianIn honor of one of your previous posts where you state that the tutorials at Lucky's site only server to annoy you ... I hereby give you a link to a tutorial at Lucky's site: [url]http://www.rookscape.com/vbgaming/tutBU.php[/url] ;) :D It's one I wrote a while ago ... it gives a way to do circle-versus-rect detection, and also a way to approach specific types of triangles. Hope it helps, -Bryk
cbxah yes I remember that one. ... Ahem ... where's the downloadable source code Brykovian, where's the downloadable source code? [:D] I hate having to read thru what I consider to be lame tutorials all the time, because when I am looking to solve a problem all I want is a short application (100 lines of code or less) showing me how to do it. I am also of the opinion that all of the books about programming are 95% filler full of bla bla bla and only 5% actual content. Also why I deffinitly don't purchase programming books any more. Waste of friggan mula mula that they are. [:(!]
quote:
Originally posted by Brykovian
In honor of one of your previous posts where you state that the tutorials at Lucky's site only server to annoy you ... I hereby give you a link to a tutorial at Lucky's site: [url]http://www.rookscape.com/vbgaming/tutBU.php[/url] ;) :D It's one I wrote a while ago ... it gives a way to do circle-versus-rect detection, and also a way to approach specific types of triangles. Hope it helps, -Bryk
cbxBrykovian if I was'nt a bipedal male I'd hump your leg! ... er .. well mabe I'd just give you a lick. ... er ... hmmm ,... I believe the phrase "EEEWWW!" is now in order. [:D] PS: The CircleRectCollision was EXACTLY what I was looking for! have you written any other tutorials, .. huh huh have you have you. I'll keep that pesky neighbors cat from craping on your lawn again ,whoof! whoof! [:p]
Brykovian
quote:
Originally posted by cbx
I hate having to read thru what I consider to be lame tutorials all the time, because when I am looking to solve a problem all I want is a short application (100 lines of code or less) showing me how to do it. I am also of the opinion that all of the books about programming are 95% filler full of bla bla bla and only 5% actual content.
Well ... you know what they say ... "give a man a fish" ... [B)] -Bryk
cbx
quote:
Well ... you know what they say ... "give a man a fish" ... [B)]
hhmmm, ... I can't remember how that saying goes exatly, or what the meaning was. ... yep you lost me on that one. [?] [V]
Brykovian"Give a man a fish and feed him for a day. Teach a man to fish and feed him for a lifetime." Of course, that's the optimists version ... I've also heard the version that goes: "Give a man a fish ... and he just might slap you with it!" [:D] -Bryk
Almar JolingAlmar slaps Brykovian with a large trout [:)] [;)][:o)]