Skip to content

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

License

Notifications You must be signed in to change notification settings

suriyun-mmorpg/UnityMultiplayerARPG_2DAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fa13ff4 · Jan 17, 2020

History

45 Commits
May 28, 2019
May 28, 2019
Jul 5, 2019
Jan 13, 2020
Jan 17, 2020
May 27, 2019
May 28, 2019
May 28, 2019
May 27, 2019
May 28, 2019
Jul 11, 2019
Jul 11, 2019
Jul 11, 2019
May 28, 2019
May 28, 2019

Repository files navigation

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

  • Attach A Star Character Movement 2D to your character entity
  • Attach AI Lerp or AI Path component
  • Don't enable rotation for AI Lerp or AI Path

  • If you use AI Path, set Orientation to YAxisForward (for 2D games) set Radius and Height fit to your character

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

Setup character to move in grid as 4 directions(UP/DOWN/LEFT/RIGHT)

  • Use AI Lerp for characters
  • Set PathfinderConnections to Four

About AI Lerp and AI Path

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages