How to follow character movement and make him go straight after turn

There is the tutorial about Threedium demo and full source code - Tutorial on creating Babylon.js multiplayer games and live demo