Class KaijuRadiusAgent
An KaijuAgent type which tries to get its radius from colliders or otherwise manually assigns them.
Inheritance
System.Object
KaijuRadiusAgent
Inherited Members
Namespace: KaijuSolutions.Agents
Syntax
public abstract class KaijuRadiusAgent : KaijuAgent
Properties
Radius
The radius of this KaijuAgent. If there is an attached collider, this will lock to it and calculate the radius based on its size and cannot be set.
Declaration
public float Radius { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
GetRadius()
Get the radius of an KaijuAgent.
Declaration
public override float GetRadius()
Returns
| Type | Description |
|---|---|
| System.Single | The radius of the KaijuAgent. |
Overrides
Setup()
Initialize the KaijuAgent. There is no point in manually calling this.
Declaration
public override void Setup()
Overrides
Operators
Implicit(GameObject to KaijuRadiusAgent)
Implicit conversion from a GameObject.
Declaration
public static implicit operator KaijuRadiusAgent(GameObject o)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | o | The GameObject. |
Returns
| Type | Description |
|---|---|
| KaijuRadiusAgent | The KaijuAgent attached to the GameObject if there was one. |
Implicit(Transform to KaijuRadiusAgent)
Implicit conversion from a transform.
Declaration
public static implicit operator KaijuRadiusAgent(Transform t)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | t | The transform. |
Returns
| Type | Description |
|---|---|
| KaijuRadiusAgent | The KaijuAgent attached to the transform if there was one. |