SEARCH

You are here:
Estimated reading time: 1 min

Search will search the map by wandering until it finds the target. It can find the target by seeing or hearing the target.

wanderDistance
How far ahead of the current position to look ahead for a wander

wanderRate
The amount that the agent rotates direction

fieldOfViewAngle
The field of view angle of the agent (in degrees)

viewDistance
The distance that the agent can see

ignoreLayerMask
The LayerMask of the objects to ignore when performing the line of sight check

senseAudio
Should the search end if audio was heard?

hearingRadius
How far away the unit can hear

offset
The offset relative to the pivot position

targetOffset
The target offset relative to the pivot position

objectLayerMask
The LayerMask of the objects that we are searching for

linearAudibilityThreshold
The further away a sound source is the less likely the agent will be able to hear it. Set a threshold for the the minimum audibility level that the agent can hear

returnedObject
The object that is within sight

Was this article helpful?
Dislike 0
Views: 27