Class KaijuRigidbodyAgent
KaijuAgent which moves via a rigidbody.
Inherited Members
Namespace: KaijuSolutions.Agents
Syntax
public sealed class KaijuRigidbodyAgent : KaijuRadiusAgent
Properties
Body
The rigidbody which controls the KaijuAgent's movement.
Declaration
public Rigidbody Body { get; }
Property Value
| Type | Description |
|---|---|
| Rigidbody |
PhysicsAgent
If this KaijuAgent should move with the physics system.
Declaration
public override bool PhysicsAgent { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Methods
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 KaijuRigidbodyAgent)
Implicit conversion from a GameObject.
Declaration
public static implicit operator KaijuRigidbodyAgent(GameObject o)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | o | The GameObject. |
Returns
| Type | Description |
|---|---|
| KaijuRigidbodyAgent | The agent attached to the GameObject if there was one. |
Implicit(KaijuRigidbodyAgent to Rigidbody)
Implicit conversion to get the rigidbody.
Declaration
public static implicit operator Rigidbody(KaijuRigidbodyAgent a)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuRigidbodyAgent | a | The agent. |
Returns
| Type | Description |
|---|---|
| Rigidbody | The rigidbody of the agent |
Implicit(Transform to KaijuRigidbodyAgent)
Implicit conversion from a transform.
Declaration
public static implicit operator KaijuRigidbodyAgent(Transform t)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | t | The transform. |
Returns
| Type | Description |
|---|---|
| KaijuRigidbodyAgent | The agent attached to the transform if there was one. |