while asking a new question I answered my self...
1.- doing a different Thread than the renderThread to listen to commands via tcp and make the RenderThread and the TCP Thread independent from each other.
2.-Writting the values read from the tcp connection in static variables in order to be shared between the TCPThread and the RenderThread
3.-defining a maxium steep value in order the have a smooth movement
4.-doing the movement in intervals of that maxium steep size until reaching the current value (increasing or decreaseing) and moving just one step on each RenderThread iteration
1.- doing a different Thread than the renderThread to listen to commands via tcp and make the RenderThread and the TCP Thread independent from each other.
2.-Writting the values read from the tcp connection in static variables in order to be shared between the TCPThread and the RenderThread
3.-defining a maxium steep value in order the have a smooth movement
4.-doing the movement in intervals of that maxium steep size until reaching the current value (increasing or decreaseing) and moving just one step on each RenderThread iteration