Pawn-AddMovementInput(Vector3_float_bool).md

April 18, 2021 ยท View on GitHub

UnrealEngine.Framework.Pawn

Pawn.AddMovementInput(System.Numerics.Vector3, float, bool) Method

Adds movement input along the given world direction vector (usually normalized)

public void AddMovementInput(in System.Numerics.Vector3 worldDirection, float scaleValue=1f, bool force=false);

Parameters

worldDirection System.Numerics.Vector3
Direction in world space to apply input

scaleValue System.Single
Scale to apply to input, 0.5f applies half the normal value, while -1.0 would reverse the direction

force System.Boolean
If true, always add the input, ignoring the result of IsMoveInputIgnored