Skip to content

Simple programm, that draws map and finds the best way to a random point

Notifications You must be signed in to change notification settings

wantid/Pathfinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathfinding

Simple programm, that draws map and finds the best way to a random point

Repository information

Demo scene objects

In project files you can find a demo scene, that represents how this implementation of pathfinding works. Main objects of this scene are:

  • "1st person" - has an attached script "Navigation.cs". "Navigation.cs" was written for drawing map and for computing the best way to desired point. This object has also child components, Agent and Agent Camera.
  • "Agent Camera" - has an attached script "CameraFollow.cs", that makes this object follow the agent.
  • "Agent" - has an attached script "AgentWalk.cs". "AgentWalk.cs" calls "Navigation.cs" to draw a map, and to draw a way. Map and current Way are lists, that consists of Points (fig.1).

point class

fig.1 - class "point"

Demo description

In this demo, while playing you see agent moving from his "eyes". But also, you can press debug buttons (F1, F2) to view his current way, and also preview a map as shown on fig.2-3.

way points

fig.2 - way points of the current way (F2)

map points

fig.3 - map points (F1)

Links

Telegram Youtube

About

Simple programm, that draws map and finds the best way to a random point

Topics

Resources

Stars

Watchers

Forks

Languages