Dragging a physics body

I have some physics bodies I want to drag them. I have a drag script set up and added listeners. Everything works, but the physics is moving the bodies simultaneously with the drag which creates odd motion.

How best to approach this? I want the dragging bodies to interact with other bodies, but I don’t want gravity to effect them. [import]uid: 98652 topic_id: 20170 reply_id: 320170[/import]

Answered this for myself. Set the bodyType to “kinematic” at the beginning of the drag and back to “dynamic” when the drag ends. [import]uid: 98652 topic_id: 20170 reply_id: 78784[/import]

you can also look at touch joint to drag without changing body type

:slight_smile: [import]uid: 12482 topic_id: 20170 reply_id: 78849[/import]

Thanks for the reply, I’ll have to look into this. [import]uid: 98652 topic_id: 20170 reply_id: 78942[/import]