3.59 KBregrads ,,, yazeed [:)]">
2D Collisions Module :) | |
game_maker | Hi
I wrote a simple 2d Collision Module ,It contains :
[code]
'// 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
[/code]
I hope you find it useful
Download Attachment: [url="http://www.vbgamer.com/msgboard/uploaded/game_maker/20047882149_Colls.zip"][img]icon_paperclip.gif[/img]Colls.zip[/url] 3.59 KB regrads ,,, yazeed [:)] |
Lachlan87 | Maybe Eric or Peter could put it under the Files section? |
game_maker | Maybe [:)]
here is 5 examples to show you how to perform tests using the module [:)]
Download Attachment: [url="http://www.vbgamer.com/msgboard/uploaded/game_maker/200471884240_Colls.zip"][img]icon_paperclip.gif[/img]Colls.zip[/url] 11.57 KB regards [:)] |
VBBR | 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. [:D] 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. |
Eric Coleman | Do you want me to put it in the files section or just leave it here in this post? |
game_maker | I think it's better to keep it in the files section Sorry for confusion [8)] |
cbx | quote: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: [url="http://www.vbgamer.com/msgboard/uploaded/cbx/200471820190_Collision.zip"][img]icon_paperclip.gif[/img]Collision.zip[/url] 67.37 KB |
VBBR | ... VB.NET 2005? |
cbx | quote:Yep! Check it out. Free software. Err Um,.. Betaware [:p] [url]http://lab.msdn.microsoft.com/express/vbasic/default.aspx[/url] |
VBBR | 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. |