TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D Class Reference

Requires a CharacterMovement ability. Makes the character move up to the specified MinimumDistance in the direction of the target. More...

Inheritance diagram for MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D:
MoreMountains.Tools.AIAction

Public Member Functions

override void Initialization ()
 On init we grab our CharacterMovement ability.
override void PerformAction ()
 On PerformAction we move.
override void OnExitState ()
 On exit state we stop our movement.
Public Member Functions inherited from MoreMountains.Tools.AIAction
void PerformAction ()
virtual void OnEnterState ()
 Describes what happens when the brain enters the state this action is in. Meant to be overridden.

Public Attributes

float MinimumDelayBeforeUpdatingTarget = 0.3f
 the minimum duration (in seconds) before we update the target's position again
bool ClearTargetOnExit = false
 whether or not to clear the target when exiting the state running this action, stopping the movement
Public Attributes inherited from MoreMountains.Tools.AIAction
InitializationModes InitializationMode
 whether initialization should happen only once, or every time the brain is reset
string Label
 a label you can set to organize your AI Actions, not used by anything else

Protected Member Functions

virtual void Move ()
 Moves the character towards the target if needed.
Protected Member Functions inherited from MoreMountains.Tools.AIAction
virtual void Awake ()
 On Awake we grab our AIBrain.

Protected Attributes

CharacterMovement _characterMovement
CharacterPathfinder3D _characterPathfinder3D
float _lastSetNewDestinationAt = -Single.MaxValue
Protected Attributes inherited from MoreMountains.Tools.AIAction
bool _initialized
AIBrain _brain

Additional Inherited Members

Public Types inherited from MoreMountains.Tools.AIAction
enum  InitializationModes { EveryTime , OnlyOnce }
Properties inherited from MoreMountains.Tools.AIAction
virtual bool ActionInProgress [get, set]
virtual bool ShouldInitialize [get]

Detailed Description

Requires a CharacterMovement ability. Makes the character move up to the specified MinimumDistance in the direction of the target.

Member Function Documentation

◆ Initialization()

override void MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D.Initialization ( )
virtual

On init we grab our CharacterMovement ability.

Reimplemented from MoreMountains.Tools.AIAction.

◆ Move()

virtual void MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D.Move ( )
protectedvirtual

Moves the character towards the target if needed.

◆ OnExitState()

override void MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D.OnExitState ( )
virtual

On exit state we stop our movement.

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

override void MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D.PerformAction ( )

On PerformAction we move.

Member Data Documentation

◆ _characterMovement

CharacterMovement MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D._characterMovement
protected

◆ _characterPathfinder3D

CharacterPathfinder3D MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D._characterPathfinder3D
protected

◆ _lastSetNewDestinationAt

float MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D._lastSetNewDestinationAt = -Single.MaxValue
protected

◆ ClearTargetOnExit

bool MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D.ClearTargetOnExit = false

whether or not to clear the target when exiting the state running this action, stopping the movement

◆ MinimumDelayBeforeUpdatingTarget

float MoreMountains.TopDownEngine.AIActionPathfinderToTarget3D.MinimumDelayBeforeUpdatingTarget = 0.3f

the minimum duration (in seconds) before we update the target's position again


The documentation for this class was generated from the following file: