Class KaijuCharacterAgent
KaijuAgent which moves via a chracter controller.
Inherited Members
Namespace: KaijuSolutions.Agents
Syntax
public sealed class KaijuCharacterAgent : KaijuAgent
Fields
gravity
If gravity should be applied to the KaijuAgent.
Declaration
public bool gravity
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Properties
Character
The chracter controller which controls the KaijuAgent's movement.
Declaration
public CharacterController Character { get; }
Property Value
| Type | Description |
|---|---|
| CharacterController |
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 KaijuCharacterAgent)
Implicit conversion from a GameObject.
Declaration
public static implicit operator KaijuCharacterAgent(GameObject o)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | o | The GameObject. |
Returns
| Type | Description |
|---|---|
| KaijuCharacterAgent | The agent attached to the GameObject if there was one. |
Implicit(KaijuCharacterAgent to CharacterController)
Implicit conversion to get the chracter controller.
Declaration
public static implicit operator CharacterController(KaijuCharacterAgent a)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuCharacterAgent | a | The agent |
Returns
| Type | Description |
|---|---|
| CharacterController | The chracter controller of the agent. |
Implicit(Transform to KaijuCharacterAgent)
Implicit conversion from a transform.
Declaration
public static implicit operator KaijuCharacterAgent(Transform t)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | t | The transform. |
Returns
| Type | Description |
|---|---|
| KaijuCharacterAgent | The agent attached to the transform if there was one. |