Link9228

I know tons of threads exist, but I looked through a few of them, and they didn't really help me to learn how to start a collision detection code. Thanks


Re: XNA Game Studio Express Can someone point me to a thread that will tell me how to add collision detection to my game?

waruwaru

Is your game 2D, or 3D What are you having trouble with Why didn't the threads help you Without more info, can only point you to the more generic answers.

http://www.google.com/search hl=en&q=xna+collision+tutorial






Re: XNA Game Studio Express Can someone point me to a thread that will tell me how to add collision detection to my game?

Link9228

waruwaru wrote:

Is your game 2D, or 3D What are you having trouble with Why didn't the threads help you Without more info, can only point you to the more generic answers.

http://www.google.com/search hl=en&q=xna+collision+tutorial

ok, my game thus far is set in 3d.

I believe that bounding sphere would be the best collision detection for me, but i havent used it yet. In everything I have made so far, I just walk thru walls. The reason I didnt find anything that helped me is that the threads I looked at had info for people who knew the basics of adding collision detection. I dont. I will check google just in case tho.





Re: XNA Game Studio Express Can someone point me to a thread that will tell me how to add collision detection to my game?

waruwaru

This link might help you to understand bounding sphere:

http://www.mvps.org/directx/articles/using_bounding_spheres.htm

btw, since a wall is flat, you probably want to test the sphere (around your ship/obj), intersecting a plane (the wall). Walking through wall probably means the bounding sphere isn't defined/calculated correctly.






Re: XNA Game Studio Express Can someone point me to a thread that will tell me how to add collision detection to my game?

AlfonsAberg

This is a great tutorial on collision detection in XNA:

http://sharky.bluecog.co.nz/ page_id=113