Skip to content

Repo for my simple flying pathfinding tasks for Behavior Designer

Notifications You must be signed in to change notification settings

mdotstrange/FlightPath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlightPath

A poor mans flight "pathfinding" task for Behavior Designer- it moves to the target using the Rigidbody- casts to find obstacles and tries to move around them- if it gets stuck it gets the nearest Navmesh SURFACE underneath it and moves to that point then it tries to go to the target on the navmesh for a few seconds then it flies again. Make sure your NavMeshAgent offset is high enough so that when it switches to navmesh move it still appears to be off the ground.

//REQUIRES Dotween(Free), More Effective Coroutines(Pro) $20 and the NavMeshSurface components though it would be easy to switch it to using the old NavMesh system.

Example gif

Requires a Rigidbody with these settings recommended Rb settings

Example tree of useage in this gif- where it seeks the target then stops and looks at it Example tree

Task Ui Task Ui

About

Repo for my simple flying pathfinding tasks for Behavior Designer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages