How to disable default Flick/Drag behavior in every dynamic object in the Samples

Topics: Developer Forum, Project Management Forum, User Forum
Nov 3, 2012 at 2:59 PM

How to disable default Flick/Drag behavior in every dynamic object in the Samples?

I created a new project and copied all the classes from the Samples.

And I created a new level on top of it, now my dynamic objects on the screen can all be moved when dragged. How to disable it?

Nov 4, 2012 at 4:59 PM

Look at PhysicsGameScreen.cs specifically HandleCursor(). A FixedMouseJoint is created to move objects on click. You should remove that.

Nov 4, 2012 at 10:12 PM

It worked very well bro. Thanks a lot.