Class KaijuNavigationAgent
KaijuAgent which moves via a navigation mesh agent.
Inherited Members
Namespace: KaijuSolutions.Agents
Syntax
public sealed class KaijuNavigationAgent : KaijuAgent
Properties
Nav
The navigation mesh agent which controls the KaijuAgent's movement.
Declaration
public NavMeshAgent Nav { get; }
Property Value
| Type | Description |
|---|---|
| NavMeshAgent |
Methods
GetRadius()
Get the radius of an KaijuAgent.
Declaration
public override float GetRadius()
Returns
| Type | Description |
|---|---|
| System.Single | The radius of the KaijuAgent. |
Overrides
Move(Single)
Perform KaijuAgent movement. There is no point in manually calling this.
Declaration
public override void Move(float delta)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | delta | The time step. |
Overrides
Setup()
Initialize the KaijuAgent. There is no point in manually calling this.
Declaration
public override void Setup()
Overrides
Operators
Implicit(GameObject to KaijuNavigationAgent)
Implicit conversion from a GameObject.
Declaration
public static implicit operator KaijuNavigationAgent(GameObject o)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | o | The GameObject. |
Returns
| Type | Description |
|---|---|
| KaijuNavigationAgent | The agent attached to the GameObject if there was one. |
Implicit(KaijuNavigationAgent to NavMeshAgent)
Declaration
public static implicit operator NavMeshAgent(KaijuNavigationAgent a)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuNavigationAgent | a |
Returns
| Type | Description |
|---|---|
| NavMeshAgent |
Implicit(Transform to KaijuNavigationAgent)
Implicit conversion from a transform.
Declaration
public static implicit operator KaijuNavigationAgent(Transform t)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | t | The transform. |
Returns
| Type | Description |
|---|---|
| KaijuNavigationAgent | The agent attached to the transform if there was one. |