Static body connection

Official forum for the Chipmunk2D Physics Library.
morsmodre
Posts: 22
Joined: Sat Feb 09, 2008 2:55 am
Contact:

Re: Static body connection

Post by morsmodre »

do you connect both joins in the middle of the bodies (that is with a cpvzro offset)?

EDIT:
Doesn't work ... if a force is applied in one body they switch.
This is what I tried: two bodies A and B rotated 45º in the positions (0, 0) and (10, 10) respectively (the vector of them is (10,10)) I join them with a pin and pivot join in the center of the bodies.
After I have this I apply a force of in the direction (-1,1) at the body A. And, instead of BOTH bodies go in the (-1, 1) directions, going to the positions [A(-1, 1), B(9, 11)] -> [A(-2, 2), B(8, 12)] -> [A(-3, 3), B(7, 13)] -> etc..., the body A rotates arround the body B and then starts pulling it. This means that the angle between them changes to (-10,10).

Does ANYONE has ANY ideia to fix this? (with multiple bodies!)

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests