Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

2D collision detection and response in XNA

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 mwkenna   Members   

143
Like
0Likes
Like

Posted 20 April 2012 - 03:59 AM

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.

#2 Murdocr   Members   

122
Like
0Likes
Like

Posted 21 April 2012 - 02:54 AM

Hi Mark,

Perhaps this 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.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.