Class AdaptiveGaze
Defines a gaze behaviour that looks at gaze targets in the scene dynamically
Namespace: i5.VirtualAgents
Assembly: cs.temp.dll.dll
Syntax
public class AdaptiveGaze : MonoBehaviour
Fields
occlusionLayers
The layers that can block the view between a gaze target and the agent The default is the default layer mask
Declaration
public LayerMask occlusionLayers
Field Value
Type | Description |
---|---|
LayerMask |
OverwriteGazeTarget
When this transform is set, the gaze target is overwritten and the agent looks at this transform constantly without interruption (within the boundaries specified by the AimAt Script, e.g. distanceLimit and angleLimit)
Declaration
public Transform OverwriteGazeTarget
Field Value
Type | Description |
---|---|
Transform |
seeLayers
The object layers that are checked for gaze targets, default is everything for the sake of simplicity. It is recommended to set this to a more specific layer mask to improve performance.
Declaration
public LayerMask seeLayers
Field Value
Type | Description |
---|---|
LayerMask |
Methods
Activate()
This function has to be called to start the adaptive gaze, after has been stopped with the deactivate function
Declaration
public void Activate()
Deactivate()
This function has to be called to stop the adaptive gaze
Declaration
public void Deactivate()