Can someone point me to a thread that will tell me how to add collision detection to my game?
Can someone point me to a thread that will tell me how to add collision detection to my game?
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
Can someone point me to a thread that will tell me how to add collision detection to my game?
5letters
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.
Phantisy
http://sharky.bluecog.co.nz/ page_id=113
chubbysilk
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.
Srinivasa Chary
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