Suggested change to MousePickEnabled

Dec 1, 2010 at 9:41 AM

Hi Andy,


I was going to make a patch for this, but i wasn't sure what format to put the change in.  But I have keep making changes to the source i download to ensure that static physics objects are not enabled for mousepick.  It seems silly having a static object allowed to be pulled around when it cannot move.

So on line 831 of PhysicsControllerMain.cs in the helper i have done this:


-if (_pickedSprite != null)

+if (_pickedSprite != null && !_pickedSprite.BodyObject.IsStatic)

Feel free to add it...or not ;)

Thanks again for the helper, its great.