moving a circle from A to B

Still learning about what Box2D can do.

How do I move a circle from point A with a certain velocity and stop at point B?
You can use a prismatic joint with a motor and a limit. See the MotorsAndLimits example.
Hi Erin,

Thanks for the reply.

If I need the circle with a prismatic joint to point B to have freedom of movement from different directions during a game.

Most of the definition values are set during creation/initialization of the joint. How can I change the definition value for the prismatic joint in mid game? Im asking because I don't see how I can refer to the jointDef from the body.
So you need free form movement of a shape that is non-dynamic? You can try moving a static body around.
I tried using SetOriginPosition. But the thing is it arrives at that point right away.

So I was thinking why not, set the position and velocity in the definition?

If possible I try to fire and forget and let the physics engine handle the in between stuff or tracking. Reason being...in between, it could collide with another object ya.

And I have had a few encounters where I had difficulties trying to set a definition property. For example....how to set a Circle radius while its moving or etc.... 😆
You are running into trouble because you are trying to do a lot of things that are not supported by Box2D.

If you want to move around an infinite mass body you have to move it each time step.

Morphing shapes is not supported in Box2D. You can try recreating the body. Or you can try hacking into Box2D to make it work.

It is possible that these features could be supported in the future, but I'm busy working on more fundamental features right now (continuous collision detection).
Oh dear, I didn't know it is not supported.

Ideally, I try not to build a small tracking engine above Box2D....quite complicated.

Thanks for your advice Erin.

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