elastic rope v.s. mouse joint

I want to use elastic rope to connect objects, and I want this joint to behave like the mouse joint. But I couldn't manage to do that. Is that possible?

Also there isn't rope class in the box2dweb version, so I can't get an inelastic rope either.

Anybody know?
How about a distance joint with the frequency and damping set to make it springy?
Also, box2dweb actually does have a mouse joint if that's what you're looking for.
irresistible force wrote:How about a distance joint with the frequency and damping set to make it springy?
Also, box2dweb actually does have a mouse joint if that's what you're looking for.


Thx for your reply. I know there is mouse joint, and it has exactly the behavior I need. But I couldn't manage to use it to connect two objects last time I try. I'll try again, do you think it's possible to connect objects with mouse joint?

If mouse joint just can't work that way I'll try the distance joint then.
irresistible force wrote:How about a distance joint with the frequency and damping set to make it springy?
Also, box2dweb actually does have a mouse joint if that's what you're looking for.


Alright, my second attempt of tweaking the mouse joint didn't work out again..
But I tried distant joint with frequency and damping. It works!
Thanks a lot! : )

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