Post

 Resources 

Console

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

 All Forums
 VBGamer
 VBGamer
 2D Collisions Module :)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

game_maker
Knave

Saudi Arabia
83 Posts

Posted - Jul 08 2004 :  08:22:24 AM  Show Profile  Visit game_maker's Homepage  Reply with Quote
Hi

I wrote a simple 2d Collision Module ,It contains :

  
'// Functions :-
'// 01 - Collision_CircleCircle
'// 02 - Collision_CircleCircleEx
'// 03 - Collision_PointCircle
'// 04 - Collision_PointCircleEx
'// 05 - Collision_RectRect
'// 06 - Collision_RectRectEx
'// 07 - Collision_PointTriangle
'// 08 - Collision_PointTriangleEx
'// 09 - Collision_CircleTriangle
'// 10 - Collision_LineCircle
  


I hope you find it useful


Download Attachment: Colls.zip
3.59 KB

regrads ,,, yazeed

Lachlan87
Moderator

USA
160 Posts

Posted - Jul 08 2004 :  5:04:04 PM  Show Profile  Reply with Quote
Maybe Eric or Peter could put it under the Files section?

Go to Top of Page

game_maker
Knave

Saudi Arabia
83 Posts

Posted - Jul 18 2004 :  08:42:58 AM  Show Profile  Visit game_maker's Homepage  Reply with Quote
Maybe

here is 5 examples to show you how to perform tests using the module

Download Attachment: Colls.zip
11.57 KB

regards
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - Jul 18 2004 :  09:28:02 AM  Show Profile  Reply with Quote
See, I think this line-circle check is going to save my collision-checking life... This was the only thing I needed to create my great-all-purpose-collisions-with-sliding-module.

Actually, sliding is so easy to do, I dunno why I didn't figure it out earlier. Let me just arrange averything here and I should post the code.

Whatever. Who knows...
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - Jul 18 2004 :  11:46:24 AM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
Do you want me to put it in the files section or just leave it here in this post?
Go to Top of Page

game_maker
Knave

Saudi Arabia
83 Posts

Posted - Jul 18 2004 :  2:23:31 PM  Show Profile  Visit game_maker's Homepage  Reply with Quote
I think it's better to keep it in the files section

Sorry for confusion

Edited by - game_maker on Jul 18 2004 2:24:39 PM
Go to Top of Page

cbx
Swordmaster

Canada
296 Posts

Posted - Jul 18 2004 :  8:19:15 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:
Originally posted by game_maker

Hi

I wrote a simple 2d Collision Module ,It contains :
...
regrads ,,, yazeed



I have converted the test projects into a vb.net 2005 solution. But the code files can still be copied over to vb.net 2002 if needed. It is a direct conversion to vb.net code, the only thing I changed/removed was the 'Upgrade tags that the vb6 to vb.net upgrade wizard inserts into the code. I also re-worked the graphics code to use .net based graphics. Other then that it's basically the same code.



Download Attachment: Collision.zip
67.37 KB


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

Edited by - cbx on Jul 18 2004 8:21:04 PM
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - Jul 18 2004 :  8:39:24 PM  Show Profile  Reply with Quote
... VB.NET 2005?

Whatever. Who knows...
Go to Top of Page

cbx
Swordmaster

Canada
296 Posts

Posted - Jul 18 2004 :  9:43:36 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:
Originally posted by VBBR

... VB.NET 2005?


Yep! Check it out. Free software. Err Um,.. Betaware

http://lab.msdn.microsoft.com/express/vbasic/default.aspx

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

VBBR
Moderator

Brazil
617 Posts

Posted - Jul 19 2004 :  07:09:07 AM  Show Profile  Reply with Quote
Oh yeah. I just love the M$ beta programs.

I got VS.NET 2002 Beta 1, learned it, and when the final version launched, everything was different, including the stupid framework.

Whatever. Who knows...
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.12 seconds. Snitz Forums 2000

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