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).

Choose your operating system:

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.