Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Collision detection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cbx
Swordmaster

Canada
296 Posts

Posted - Jul 13 2003 :  5:45:16 PM  Show Profile  Visit cbx's Homepage  Send cbx an ICQ Message  Click to see cbx's MSN Messenger address  Send cbx a Yahoo! Message  Reply with Quote
I 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

Dim Ret as Boonean  
Ret = DetectCollision(Circle, Rect)  


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.

Created by: X
http://www.createdbyx.com/

Edited by - cbx on Jul 13 2003 6:16:42 PM

Brykovian
Bryk the Cheese Slayer!

USA
58 Posts

Posted - Jul 13 2003 :  8:01:37 PM  Show Profile  Visit Brykovian's Homepage  Click to see Brykovian's MSN Messenger address  Reply with Quote
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: http://www.rookscape.com/vbgaming/tutBU.php ;) :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


www.mwgames.com
Go to Top of Page

cbx
Swordmaster

Canada
296 Posts

Posted - Jul 13 2003 :  9:51:10 PM  Show Profile  Visit cbx's Homepage  Send cbx an ICQ Message  Click to see cbx's MSN Messenger address  Send cbx a Yahoo! Message  Reply with Quote
ah yes I remember that one. ... Ahem ... where's the downloadable source code Brykovian, where's the downloadable source code?

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: http://www.rookscape.com/vbgaming/tutBU.php ;) :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


Created by: X
http://www.createdbyx.com/
Go to Top of Page

cbx
Swordmaster

Canada
296 Posts

Posted - Jul 13 2003 :  10:03:44 PM  Show Profile  Visit cbx's Homepage  Send cbx an ICQ Message  Click to see cbx's MSN Messenger address  Send cbx a Yahoo! Message  Reply with Quote
Brykovian 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.

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!

Created by: X
http://www.createdbyx.com/
Go to Top of Page

Brykovian
Bryk the Cheese Slayer!

USA
58 Posts

Posted - Jul 14 2003 :  06:56:08 AM  Show Profile  Visit Brykovian's Homepage  Click to see Brykovian's MSN Messenger address  Reply with Quote
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" ...

-Bryk

www.mwgames.com
Go to Top of Page

cbx
Swordmaster

Canada
296 Posts

Posted - Jul 14 2003 :  6:10:29 PM  Show Profile  Visit cbx's Homepage  Send cbx an ICQ Message  Click to see cbx's MSN Messenger address  Send cbx a Yahoo! Message  Reply with Quote
quote:

Well ... you know what they say ... "give a man a fish" ...


hhmmm, ... I can't remember how that saying goes exatly, or what the meaning was. ... yep you lost me on that one.

Created by: X
http://www.createdbyx.com/
Go to Top of Page

Brykovian
Bryk the Cheese Slayer!

USA
58 Posts

Posted - Jul 14 2003 :  7:51:50 PM  Show Profile  Visit Brykovian's Homepage  Click to see Brykovian's MSN Messenger address  Reply with Quote
"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!"

-Bryk


www.mwgames.com

Edited by - Brykovian on Jul 14 2003 7:52:59 PM
Go to Top of Page

Almar
Moderator

Netherlands
192 Posts

Posted - Jul 18 2003 :  04:19:49 AM  Show Profile  Visit Almar's Homepage  Send Almar an ICQ Message  Reply with Quote
Almar slaps Brykovian with a large trout

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.14 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.