UCharacterMovementComponent::ShouldRemainVertical

If true, DesiredRotation will be restricted to only Yaw component in [PhysicsRotation()](API\Runtime\Engine\GameFramework\UCharacterMovementComponent\PhysicsRotation)

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 ShouldRemainVertical() const

Remarks

If true, DesiredRotation will be restricted to only Yaw component in PhysicsRotation()