How to joint the 2 jointed bodies

Discuss issues specific the Javascript port of Box2D
Posts: 1
Joined: Wed Oct 28, 2015 3:36 am

How to joint the 2 jointed bodies

Postby Ashish » Wed Oct 28, 2015 3:57 am

Hi all,
I am learning the Box2D. I am having one problem The problem definition is as follows:
I am having a fixed point, surrounded by a circle of some fixed radius. I am dragging a body. There are 2 points on the body. As soon as the body enters into the circle, the nearest point should be merged with the point inside circle.
I am able to solve this problem by translating the body by that distance. But it got solved only for the single body. If there are multiple bodies connected to each other, then the translation logic is not working.

Can anyone guide me for solving this problem?

Return to “Javascript”

Who is online

Users browsing this forum: No registered users and 1 guest