PathBerserker2d  1.0
Platformer pathfinding solution
Classes | Public Member Functions | List of all members
PathBerserker2d.NavLinkCluster Class Reference

Creates links to interconnect a collection. More...

Inheritance diagram for PathBerserker2d.NavLinkCluster:
PathBerserker2d.BaseNavLink

Public Member Functions

void UpdateMapping ()
 Update the mapping for all link instances. Call after link positions have been changed. More...
 
void SetLinksTraversable (System.Func< Vector2, Vector2, bool > traversableFunc)
 Set link instances to be traversable based on their start and end points. More...
 

Additional Inherited Members

Detailed Description

Creates links to interconnect a collection.

Consists of a list of points. At runtime a link is generated for each point to connect it with each other point. This is a convenience component. It drastically reduces the amount of work required to setup an elevator or ladder for example.

Otherwise it functions and behaves the same as a NavLink. Reference the documentation for NavLink for further details.

Member Function Documentation

◆ SetLinksTraversable()

void PathBerserker2d.NavLinkCluster.SetLinksTraversable ( System.Func< Vector2, Vector2, bool >  traversableFunc)

Set link instances to be traversable based on their start and end points.

Parameters
traversableFuncDetermines whether to enable or disable the given link instance. Link instance is given as its start and goal position.

◆ UpdateMapping()

void PathBerserker2d.NavLinkCluster.UpdateMapping ( )

Update the mapping for all link instances. Call after link positions have been changed.


The documentation for this class was generated from the following file: