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

movementFlagsThe 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.
directionThe dodge direction input vector. This vector is set when the dodge is activated and is not changed while active (Read only).
speedThe speed of the character when the dodge is first activated (Read only).
elapsedTimeThe amount of seconds that have elapsed since the dodge was performed (Read only).
percentCompleteThe completion percentage of the dodge being performed (Read only).
nextTimeAvailableThe time after which a consecutive dodge can be performed (Read only).
dodgesAvailableThe number of dodges the character has available. This value will reset when the dodge cooldown is finished (Read only).
availableWhether a dodge can be performed at the current time (Read only).

Methods

OnAbilityActivatedA callback invoked when the ability is activated.
OnAbilityDeactivatedA callback invoked when the ability is deactivated.
CanAbilityBeActivatedDetermines if the ability can be activated given the current state of the character.
CanAbilityStayActiveDetermines if the ability can stay active given the current state of the character.
CanAbilityBeDeactivatedDetermines if the ability can be deactivated given the current state of the character.
OnCooldownFinishedA callback invoked when the ability cooldown is finished.