๐๏ธ Intro
There are several implementations of behaviors included in the Defaults library. They can be added to a SteeringSystemAsset in the editor. Each behavior must have some things to work. For example, here are all the types relevant for one of the provided simple behaviors, the Wandering behavior:
๐๏ธ Simple Behaviors
8 items
๐๏ธ Neighbor Behaviors
8 items
๐๏ธ Ray Behaviors
5 items
๐๏ธ VelocityResult(s)
All behaviors in the defaults library return a plain struct VelocityResult per entity. The results for each entity in a behavior are contained by VelocityResults, a wrapper object for NativeArray. The VelocityResults structure is 'compatible' with CombineVelocitiesJobWrapper, a merger which receives an array of VelocityResults, one for each behavior.
๐๏ธ Accumulators
The library includes three accumulators which are commonly useful. Accumulators are implementations of IAccumulator. They aggregate information about neighbors or raycasts inside implementations of neighbor behaviors and raycast behaviors.