Using a click to move system is very popular with strategic adventure games, so let’s take a look at setting this up with raycasting.
Here is the game scene, which has a player character and a target object to show the destination position of the player.