Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/PawnMovementComponent.h |
Include |
#include "GameFramework/PawnMovementComponent.h" |
class UPawnMovementComponent : public UNavMovementComponent
PawnMovementComponent can be used to update movement for an associated Pawn. It also provides ways to accumulate and read directional input in a generic way (with AddInputVector(), ConsumeInputVector(), etc).
Name | Description | ||
---|---|---|---|
|
TObjectPtr< cla... |
PawnOwner |
Pawn that owns this component. |
Name | Description | ||
---|---|---|---|
|
AddInputVector |
Adds the given vector to the accumulated input in world space. |
|
|
ConsumeInputVector() |
Returns the pending input vector and resets it to zero. |
|
|
AController ... |
GetController() |
Returns this component's associated controller, typically from the owning Pawn. |
|
GetLastInputVector() |
Return the last input vector in world space that was processed by ConsumeInputVector(), which is usually done by the Pawn or PawnMovementComponent. |
|
|
APawn * |
GetPawnOwner() |
Return the Pawn that owns UpdatedComponent. |
|
GetPendingInputVector() |
Return the pending input vector in world space. |
|
|
IsMoveInputIgnored() |
Helper to see if move input is ignored. |
|
|
MarkForClientCameraUpdate() |
Attempts to mark the PlayerCameraManager as dirty, if the controller has one. |
|
|
NotifyBumpedPawn ( |
Notify of collision in case we want to react, such as waking up avoidance or pathing code. |
Name | Description | ||
---|---|---|---|
|
RequestPathMove ( |
UNavMovementComponent override for input operations. |
Name | Description | ||
---|---|---|---|
|
OnTeleported() |
Called by owning Actor upon successful teleport from AActor::TeleportTo(). |
|
|
SetUpdatedComponent ( |
Overridden to only allow registration with components owned by a Pawn. |