UCharacterMovementComponent::ShouldComputeAccelerationToReachRequestedVelocity

When a character requests a velocity (like when following a path), this method returns true if when we should compute the acceleration toward requested velocity (including friction).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual bool ShouldComputeAccelerationToReachRequestedVelocity
(
    const float RequestedSpeed
) const

Remarks

When a character requests a velocity (like when following a path), this method returns true if when we should compute the acceleration toward requested velocity (including friction). If it returns false, it will snap instantly to requested velocity.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss