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 | ||
---|---|---|---|
|
APawn * |
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. |
|
|
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. |
|
|
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. |
Name | Description | ||
---|---|---|---|
|
K2_GetInputVector() |
GetInputVector() has been deprecated, use either GetPendingInputVector() or GetLastInputVector(). |