Dodge
Inherits from Zigurous.CharacterController.MovementAbility<T>
Declaration
public sealed class Dodge : MovementAbility<DodgeSettings>
Description
A movement ability to perform a quick dodge roll. This ability is often associated with invincibility frames.
Properties
movementFlags | The movement flag(s) associated with the ability. The flag(s) will be set when the ability is turned on and unset when the ability is turned off. |
direction | The dodge direction input vector. This vector is set when the dodge is activated and is not changed while active (Read only). |
speed | The speed of the character when the dodge is first activated (Read only). |
elapsedTime | The amount of seconds that have elapsed since the dodge was performed (Read only). |
percentComplete | The completion percentage of the dodge being performed (Read only). |
nextTimeAvailable | The time after which a consecutive dodge can be performed (Read only). |
dodgesAvailable | The number of dodges the character has available. This value will reset when the dodge cooldown is finished (Read only). |
available | Whether a dodge can be performed at the current time (Read only). |
Methods
OnAbilityActivated | A callback invoked when the ability is activated. |
OnAbilityDeactivated | A callback invoked when the ability is deactivated. |
CanAbilityBeActivated | Determines if the ability can be activated given the current state of the character. |
CanAbilityStayActive | Determines if the ability can stay active given the current state of the character. |
CanAbilityBeDeactivated | Determines if the ability can be deactivated given the current state of the character. |
OnCooldownFinished | A callback invoked when the ability cooldown is finished. |