Click to move Diablo Style

Hello everyone. I'm trying to implement a 'Click to Move' to a capsule. Is there any script for this particular type of movement? As the style of Diablo

you can find the script you seek (and much, much more) on Unity Wiki

1) first you use ray casting to detect the Hit point of the terrain.

  1. Then you use a transform.LookAt(); to face the player in the right direction;

  2. then you do a transform.Translate(Vector3.forward); to move towards the point.

You have to make sure the Y- is correct other wise you ll keep walking into the ground.

Check the "Moving on Uneven Terrain" at the ITween website. You can use his documentation for using the library.