PhisicsControllerMain.cs - Simulator.JointList.Remove(_mousePickSpring); vs Simulator.RemoveJoint(_mousePickSpring);

Dec 14, 2010 at 12:49 PM

Hello,

It looks like I've noted a minor issue:

PhisicsControllerMain.cs at void polygon_MouseLeftButtonUp(object sender, MouseButtonEventArgs e):

Currently:

Simulator.JointList.Remove(_mousePickSpring);

Should be:

Simulator.RemoveJoint(_mousePickSpring);

Otherwise the clicked body's JointList still has FixedMouseJoint even after couseUp event... And in some cases it crashes the app.

Please correct me if I'm wrong.

Regards,

Yury