So I have this code:
Vector vel = playerA.getVelocity();
playerB.setVelocity(vel);
Which gives playerB the velocity of playerA. The problem is that playerB often gets unsycned from playerA's position and if the players are more than a block or so away from each other, playerB doesn't get moved at all unless playerA jumps. Teleporting playerB to playerA is very glitchy as they need to be able to move the mouse.
Can anybody point me in the right direction to fixing this?