matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

Chain connecting 2 players causes 1 player to accelerate slower than the other even with same force

Open SollyBunny opened this issue 8 months ago • 0 comments

This isn't really that big of an issue, but I hope if anyone stumbles onto the same issue I had, they wouldn't have to pull their hair out.

Given 2 controllable players connected with a chain (bodies connected from left to right with constraints), if you apply the same force right, the player who started on the left (beginning of the chain) will accelete faster than the one on the right before reaching the same velocity.

A solution (although not a good one) is to start constructing the constraints from the midpoint and go outwards instead of starting from the left and going right

SollyBunny avatar Dec 16 '23 18:12 SollyBunny