Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


2d collisions


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
2 replies to this topic

#1 devdber   Members   -  Reputation: 130

Like
0Likes
Like

Posted 03 November 2012 - 09:25 AM

Hi there! Im getting to learn XNA. Could you give me some examples of simple 2d physics and collision detection? I've tryed to make my own physics but i failed in it because im not skilled coder yet Posted Image
Sorry for my poor english, im from Russia!

Sponsor:

#2 renman29   Members   -  Reputation: 388

Like
2Likes
Like

Posted 04 November 2012 - 03:21 PM

Not sure which types of collision detection would be most useful to you. If you're doing 2d tile platformer these might help:
Types of tile based collision methods:
http://higherorderfun.com/blog/2012/05/20/the-guide-to-implementing-2d-platformers/
Pixel perfect collision detection:
http://gamedev.stackexchange.com/questions/15191/is-there-a-good-way-to-get-pixel-perfect-collision-detection-in-xna
Here you can find rectangle-based collision detection source code - also links to pixel-collision and others:
http://xbox.create.msdn.com/en-US/education/catalog/tutorial/collision_2d_rectangle

I'm thinking rectangle-rectangle collision detection works for most things (but may want to try bounding-circle [radius-overlap] for some things)

#3 devdber   Members   -  Reputation: 130

Like
0Likes
Like

Posted 06 November 2012 - 08:54 AM

oh thanks for it, it seems that i have much things i should to do!




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.



PARTNERS