Skip to content

Class: Displacement ​

csharp
public abstract class Displacement

Fields ​

NameDeclarationDescription
affectedByMovementSpeedpublic bool affectedByMovementSpeedIs this displacement affected by movement speed multiplier?
isCanceledByCCpublic bool isCanceledByCCIs this displacement canceled by crowd controls?Note the displacement will not be canceled by CCs applied previously, but by new CCs.Default value is true.
isDodgingpublic bool isDodgingIs this displacement dodging?Dodging displacement will not cancel channels even when they're not allowed to continue while dashing.
isFriendlypublic bool isFriendlyIs this displacement considered a friendly displacement?This is used to determine if the displacement is Airborne or Dash, and it's fed to info structs of Displacement-related action callbacks.Default value is false.
MinimumDisplacementDurationpublic const float MinimumDisplacementDuration = 0.0001
onCancelpublic Action onCancelAction that is called when this displacement is canceled.This can be due to CCs, auto-canceling behaviour of DispByTarget, manual cancelation, and etc.
onFinishpublic Action onFinishAction that is called when this displacement has successfully finished.
rotateForwardpublic bool rotateForwardWill the entity rotate towards its velocity during the displacement?Default value is true.
rotateSmoothlypublic bool rotateSmoothlySmoothly rotate if rotateForward is on.Default value is false.

Properties ​

NameDeclarationDescription
elapsedTimepublic float elapsedTime { get; }Time elapsed starting from the moment this displacement has started.
hasStartedpublic bool hasStarted { get; }Has this displacement started?
isAlivepublic bool isAlive { get; }Is this displacement on-going?

Maintained by the Shape of Dreams Modding Community