How to grab and move a kinematic body

Hey guys..

Iam working on game.. and into finding a way/method on how should we grab and move a kinematic body.
Like in case of dynamic bodies we can use mouse joints.. but i dont understand that how can we grab and move a kinematic body.
I did went through some forums n stuff but could find anything that would help me understand.

Any ideas.. ?
Any help will be truly appreciated.
Thanks for your time.
Shailesh
Use yourBody->SetLinearVelocity(yourVelocity).
I had the same issue and i solve it by calculating the needed velocity.
pseudo code:
Code:
targetPosition - myPosition = velocity
velocity *= speed
myBody->SetLinearVelocity(velocity)


I hope it helps 🙂

Original thread: https://box2d.org/forum/viewtopic.php?t=8499