Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 905 Bytes

README.md

File metadata and controls

33 lines (18 loc) · 905 Bytes

UnityMultiplayerARPG_2DAI

AI implement for 2D mode, which implements A* Pathfinding Project

Their package files will not included in this repository, visit their site to download it :)

Setup Player Character Entity / Monster Character Entity

  • Remove other entity movement components
  • Attach Astar Character Movement 2D to your character entity

Setup map scene

  • Create empty game and attach Pathfinder component

  • In Graph section select Grid Graph

  • In Grid Graph setting, enable 2D and Use 2D Physics

  • Then set Width, Depth, Node size and Center, make it cover the map

  • Set Collider type to Point
  • Set Obstacle Layer Mask by select layers that you want to make it as obstacles