Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > UMovementComponent
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h |
Include | #include "GameFramework/MovementComponent.h" |
Source | /Engine/Source/Runtime/Engine/Private/Components/MovementComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Components|Movement")
virtual bool IsExceedingMaxSpeed
(
float MaxSpeed
) const
Remarks
Returns true if the current velocity is exceeding the given max speed (usually the result of GetMaxSpeed()), within a small error tolerance. Note that under normal circumstances updates cause by acceleration will not cause this to be true, however external forces or changes in the max speed limit can cause the max speed to be violated.