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

OnSeperation doesn't always fire

Jun 27, 2009 at 6:01 PM

Hi, I'm working on a platformmer type game and I'm having some trouble with collision detection.

it seems that if I create a rectangular type body and if the rectangle is standig up (so the narrow end is horizontal) then a sphere that is on top of it fails to fire an OnSeperation even when i use an impulse to "jump" off of it.

Any ideas?

Jun 27, 2009 at 6:17 PM

Can you edit Demo2 from the SimpleSamples to demonstrate this issue? I don't have the time to create a demo right now, but there might be a big and I know where to look. If you create the demo I will hurry up and fix it and release an update.

Jun 27, 2009 at 8:52 PM

I can't get the demos to work, it says:


The project file '.....Demo2.csproj' cannot be opened.

The project type is not supported by this installation.


I'm using C# express.

Jun 27, 2009 at 8:55 PM

You should open th SimpleSamplesXNA.csproj file.

Then there is a Demo2Screen.cs file inside the Demos\Demo2\ folder. That is the one you should look at.


Jul 1, 2009 at 7:13 PM

I'm sorry, I tried but I couldn't reproduce it.  It's magically working right now though, I'm not sure what I did...