private void onPointPacketClient(ClothPointPacket msg) { if (clothSystems.TryGetValue(msg.ClothId, out var sys)) { sys.updatePoint(msg); } }
public void updatePoint(ClothPointPacket msg) { ClothPoint point = Points2d[msg.PointX].Points[msg.PointY]; point.updateFromPoint(msg.Point, api.World); }