Class AIPathFinder
Inherited Members
Component.GetComponentInChildren<T>()
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Namespace: LobsterFramework.AI
Assembly: LobsterFramework.dll
Syntax
public class AIPathFinder : MonoBehaviour
Fields
| Improve this Doc View SourcenextWaypointDistance
Declaration
public float nextWaypointDistance
Field Value
Type | Description |
---|---|
float |
Properties
| Improve this Doc View SourceDestination
Declaration
public Vector3 Destination { get; }
Property Value
Type | Description |
---|---|
Vector3 |
ReachedDestination
Declaration
public bool ReachedDestination { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Improve this Doc View SourceMoveTo(Vector3)
Attempts to move the agent towards the specified position
Declaration
public void MoveTo(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The target position to move to |
SetTarget(Transform)
Set the target to follow, will recalculate path according to the specified time interval
Declaration
public void SetTarget(Transform target)
Parameters
Type | Name | Description |
---|---|---|
Transform | target | The target to follow |
Start()
Declaration
public void Start()
Stop()
Declaration
public void Stop()
Update()
Declaration
public void Update()