Struct GiveUpStop
This option allows the agent to make smarter stop decisions than simply deciding if it is stuck. Every time the agent bumps into a standing agent, it will progress towards stopping. Additionally, by not bumping into one, it will recover from stopping. Once the progress value is met, the agent will stop.
Inherited Members
Namespace: ProjectDawn.Navigation
Assembly: ProjectDawn.Navigation.dll
Syntax
[Serializable]
public struct GiveUpStop
Fields
| Improve this Doc View SourceEnabled
This option allows the agent to make smarter stop decisions than simply deciding if it is stuck. Every time the agent bumps into a standing agent, it will progress towards stopping. Additionally, by not bumping into one, it will recover from stopping. Once the progress value is met, the agent will stop.
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
bool |
FatigueSpeed
The speed at which the agent progresses towards stopping. The higher the value, the faster it will stop.
Declaration
[Tooltip("The speed at which the agent progresses towards stopping. The higher the value, the faster it will stop.")]
[Range(0, 1)]
public float FatigueSpeed
Field Value
Type | Description |
---|---|
float |
RecoverySpeed
The speed at which the agent recovers from stopping. The lower the value, the less tolerant it will be towards getting stuck.
Declaration
[Tooltip("The speed at which the agent recovers from stopping. The lower the value, the less tolerant it will be towards getting stuck.")]
[Range(0, 1)]
public float RecoverySpeed
Field Value
Type | Description |
---|---|
float |
Properties
| Improve this Doc View SourceDefault
Returns the default configuration.
Declaration
public static GiveUpStop Default { get; }
Property Value
Type | Description |
---|---|
GiveUpStop |