Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > ADefaultPawn
- APawn::GetMovementComponent()
- ADefaultPawn::GetMovementComponent()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/DefaultPawn.h |
Include | #include "GameFramework/DefaultPawn.h" |
Source | /Engine/Source/Runtime/Engine/Private/DefaultPawn.cpp |
virtual UPawnMovementComponent * GetMovementComponent() const
Remarks
Return our PawnMovementComponent, if we have one. By default, returns the first PawnMovementComponent found. Native classes that create their own movement component should override this method for more efficiency.