Requires a CharacterMovement ability. Makes the character move up to the specified MinimumDistance in the direction of the target.
More...
Requires a CharacterMovement ability. Makes the character move up to the specified MinimumDistance in the direction of the target.
◆ Initialization()
override void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.Initialization |
( |
| ) |
|
|
virtual |
◆ Move()
virtual void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.Move |
( |
| ) |
|
|
protectedvirtual |
Moves the character towards the target if needed
◆ OnExitState()
override void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.OnExitState |
( |
| ) |
|
|
virtual |
◆ PerformAction()
override void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.PerformAction |
( |
| ) |
|
|
virtual |
◆ _characterMovement
CharacterMovement MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D._characterMovement |
|
protected |
◆ _direction
Vector2 MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D._direction |
|
protected |
◆ _numberOfJumps
int MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D._numberOfJumps = 0 |
|
protected |
◆ MinimumXDistance
float MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.MinimumXDistance = 1f |
the minimum distance from the target this Character can reach on the x axis.
◆ UseMinimumXDistance
bool MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.UseMinimumXDistance = true |
if this is true, movement will be constrained to not overstep a certain distance to the target on the x axis
The documentation for this class was generated from the following file: