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

where did Locked go?

Jan 24, 2011 at 10:09 PM

Hello, been concentrating on game code so not been on in a few months. I just sync up to latest code and it seems a few things have been moved/renamed. My main errors are World.Locked no longer exists and contact Manifold is missing in my custom post solve. Could someone kindly tell me where these went or what they are now called. Best wishes

Jan 24, 2011 at 10:35 PM

The world is no longer locked and that means we no longer have World.Locked.

The PostSolve delegate has changed it's signature to:

 void PostSolve(Contact, ContactConstraint)

You can still get the same information as you used to using the Contact and ContactConstraint objects.

Jan 24, 2011 at 11:32 PM

Thanks genbox.  Down to like 20 errors now instead of 600 :)  Great to see you guys still at it.  Just a couple more things .....

World.Remove(Body) - This no longer exists, what should I use?  I tried to use World.DestroyBody(Body) instead.  If I do that I can compile which is great.  However now whenever a contact occurs the app crashes ....

Contact.cs line 340

listener.PreSolve(this, ref oldManifold);

This throws a null reference exception.

*scratch*  *scratch*  I just came from revision 73518, been a busy boy.

Jan 24, 2011 at 11:43 PM
Not sure why you get that error. Could you send me your project with
the error? Contact me using codeplex and I will reply with my email.
Then you can send the project files to me.