Hi guys, do know how to make a mouse controlled character ? For example, i clicked on one placed, after clicking, my character will move to that place… thanks
Get the clicked point with ScreenPointToRay.
Tag your floor or whatever place you want your character to move. Then do a raycast with the previous ray to see if you clicked a valid moving position.
If so, set a target vector3 point for your character to move towards. You can get this point from the collision of the Raycasting previously done.
Then, move towards that point.