This project has moved and is read-only. For the latest updates, please go here.


Aug 23, 2011 at 6:12 PM

Hello everyone

i've made a program " hello world xna" this have 3 ground and 1 circle...

I want to know when collision happens between this circle and one of ground and know what is it's ID.(my groundbody s is an array)


I've used the oncollision event but i don't know how to give groundbody's ID



Aug 24, 2011 at 10:33 PM

if you onCol event is for the circle, the the fixture b in the method is any other body in the game. So in the onCol method you just go something like

if fixtureB.Body == groundList[3].Fixturelist[0];

do Somthing;