Is there a way to move a box2d body similar to a cocos MoveTo command? Think about it like an overhead game board... I want to set my players by dragging them and they need to come to rest exactly where I let go. Currently, I've been able to move a body two ways:
1) create a joint at the location of the touch. This works, and with enough mass and friction set on the body, it stays in place when I remove my finger. But, when I'm dragging my finger, the joint isn't centered on the body, so it's spinning around. Hard to describe, but maybe that's something for another discussion.
2) use SetTransform() on the body to set location and rotation of the body. This works exactly how I want it, but while I'm dragging the body around the world, it doesn't collide with other bodies - it goes right through them. It doesn't do this all the time, sometimes other bodies collide with it, sometimes it passes right over. Seems like from the other threads on the forum, this isn't the ideal way to set the location of a body.
Should I be using ApplyImpulse or ApplyForce instead of creating a joint?
Sorry if this is an obvious question. I'm still trying to understand the box2d basics.