Fixed x/y moving by mousejoint2d in cocos creator 3.x?

I want to use 2d art to make this game.
So I used mousejoint2d to make this move.
I want to ask about:
How to Fixed x/y moving by mousejoint2d in cocos creator 3.x?

MouseJoint is just a wrapper that continuously applies force using a physics-based approach. You can try not using MouseJoint and instead apply a continuous force every frame, where you can set the force to a fixed x or y direction.

1赞

Thanks for your suggestion.