Hello.I used for moving objects code that I found in this site,but...
GestureSample gesture = TouchPanel.ReadGesture();
if (gesture.GestureType == GestureType.FreeDrag)//using Tap doesn't wotk also
offset = gesture.Position - _myBallFixture.Body.Position;
Vector2 positionDelta = _myBallFixture.Body.Position - (gesture.Position - offset);
Vector2 velocity = gesture.Delta / (1f / 10f);
// MoveTo( gesture.Position);
_myBallFixture.Body.LinearVelocity = -velocity;
// _myBallFixture.Body.ApplyForce(Vector2.Divide(gesture.Delta, 2.0f));
This code doesn't work for me.I want to move objects with velocity by finger.For example this is realized in SimpleSamples, but I don't know how.
I want to develop my own collision/moving system.
Also I don't found method "if obj.IsPickedUp", how can I realize this?
Please somebody help me.