Sign in to follow this  
mwkenna

2D collision detection and response in XNA

Recommended Posts

Hi Guys

I am looking for a good code example of a collision detection routine that can handle multiple fast moving objects in XNA. I have been researching SAT but I can't seem to get the MTD response code to work properly when working when there are multiple resolutions.

Please could someone post either a link to a good tutorial or preferably some sample code which achieves what I need?

I won't be copying any code I just want a worked example that I can step through in the debugger in order to understand what's happening.

Thanks,
Mark.

Share this post


Link to post
Share on other sites
Hi Mark,

Perhaps [url="http://create.msdn.com/en-US/education/catalog/tutorial/collision_2d_perpixel"]this[/url] might be of use to you?

Additionally if you just want to start off with rectangle collision, which might be easier to follow and see what's happening in the debugger, then the previous tutorial should help you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this