Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
Include |
#include "GameFramework/CharacterMovementComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
virtual bool ShouldComputeAccelerationToReachRequestedVelocity
(
const float RequestedSpeed
) const
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.