|
|
2D Collision?
#444813
08/19/14 11:57
08/19/14 11:57
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Hey! In one of my current 'projects' (it's more like playing around with new stuff) I'm using 2D sprite graphics and I really need some kind of collision system. Has anyone got some information (examples/tutorials) on how to code a 2D collision system, or any idea how I could solve this problem? kind regards, Kartoffel 
POTATO-MAN saves the day! - Random
|
|
|
Re: 2D Collision?
[Re: ventilator]
#444815
08/19/14 12:04
08/19/14 12:04
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
oohh, why didn't I notice this, thanks a lot ^^' afair, someone coded a box2D wrapper for the AUM-contest some time ago, I'll have a look at it  Edit: yep, here it is 
Last edited by Kartoffel; 08/19/14 12:10.
POTATO-MAN saves the day! - Random
|
|
|
Re: 2D Collision?
[Re: Kartoffel]
#444964
08/24/14 11:21
08/24/14 11:21
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
jip I guess it depends on your needs , the one I did with per pixel collision pretty much would do for any kind of 2d collision detection if rotation were apart of the check,of a sprite based game .
mine is a bit like "sonic the hedgehog" .
no physics though ,only detection of pixel intersections .
I have been looking at the marching squares algorithm for finding the outline of objects in images wich could then be used to form physical bodies with in libraries such as the above mentioned physics libraries .
that would enable me to turn 2d drawing into physical objects .
having the outline also enables a lot od other useful functionality .
but any way ,good luck and enjoy .
Last edited by Wjbender; 08/24/14 11:25.
Compulsive compiler
|
|
|
|