UPawnMovementComponent::AddInputVector

Adds the given vector to the accumulated input in world space.

Windows
MacOS
Linux

Override Hierarchy

UPawnMovementComponent::AddInputVector()

UVirtualCameraMovementComponent::AddInputVector()

References

Module

Engine

Header

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

Include

#include "GameFramework/PawnMovementComponent.h"

Source

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

Syntax

virtual void AddInputVector
(
    FVector WorldVector,
    bool bForce
)

Remarks

Adds the given vector to the accumulated input in world space. Input vectors are usually between 0 and 1 in magnitude. They are accumulated during a frame then applied as acceleration during the movement update.

Parameters

Parameter

Description

WorldDirection

Direction in world space to apply input

ScaleValue

Scale to apply to input. This can be used for analog input, ie a value of 0.5 applies half the normal value.

bForce

If true always add the input, ignoring the result of IsMoveInputIgnored().

See Also

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