|
-
Jul 3rd, 2002, 01:07 PM
#1
Thread Starter
Member
VB Code:
Dim Distance as Single
Distance = Sqr( (Obj1.x - Obj2.x)^2 + (Obj1.y - Obj2.y)^2 )
If Distance < Radius1 + Radius2 Then
'Collision!
EndIf
-
Jul 5th, 2002, 02:37 PM
#2
Lively Member
uh, are you displaying code for everyone to use...or asking a question?
im not really sure what you want, but ill tell you this, detecting colission of not rectangular objects is a b****
-
Jul 5th, 2002, 03:59 PM
#3
Actually, It looks like a post with no body =). Yhoko was kind enough to post some general code in response to the subject (helpful subjects are so.. helpful =).
Z.
-
Jul 7th, 2002, 05:46 AM
#4
Not NoteMe
Here is a little program i made demonstrating that collision detection, with others.
http://209.120.143.185/showthread.ph...hreadid=177612
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Jul 7th, 2002, 07:27 AM
#5
Addicted Member
SORRY
Sorry about that, I was having some trouble with my computer, just got the internet back on line after it crashed before I could complete my post.
Yhoko, thanks a lot! That code works very very well!
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|