Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- APawn
- ADefaultPawn
- ASpectatorPawn
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/DefaultPawn.h |
Include | #include "GameFramework/DefaultPawn.h" |
Syntax
UCLASS (Config=Game, Blueprintable, BlueprintType, MinimalAPI)
class ADefaultPawn : public APawn
Remarks
DefaultPawn implements a simple Pawn with spherical collision and built-in flying movement.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
uint32: 1 | bAddDefaultMovementBindings | If true, adds default input bindings for movement and camera look. |
![]() ![]() ![]() ![]() ![]() |
float | BaseLookUpRate | Base lookup rate, in deg/sec. Other scaling may affect final lookup rate. |
![]() ![]() ![]() ![]() ![]() |
float | BaseTurnRate | Base turn rate, in deg/sec. Other scaling may affect final turn rate. |
![]() ![]() ![]() ![]() ![]() |
TObjectPtr< UPawnMovementComponent > | MovementComponent | DefaultPawn movement component |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
ADefaultPawn
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
USphereComponent * | Returns CollisionComponent subobject | |
![]() ![]() |
UStaticMeshComponent * | Returns MeshComponent subobject | |
![]() ![]() ![]() ![]() |
void | LookUpAtRate
(
float Rate |
Called via input to look up at a given rate (or down if Rate is negative). |
![]() ![]() ![]() ![]() |
void | MoveForward
(
float Val |
Input callback to move forward in local space (or backward if Val is negative). |
![]() ![]() ![]() ![]() |
void | MoveRight
(
float Val |
Input callback to strafe right in local space (or left if Val is negative). |
![]() ![]() ![]() ![]() |
void | MoveUp_World
(
float Val |
Input callback to move up in world space (or down if Val is negative). |
![]() ![]() ![]() ![]() |
void | TurnAtRate
(
float Rate |
Called via input to turn at a given rate. |
Overridden from APawn
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
UPawnMovementComponent * | Return our PawnMovementComponent, if we have one. | |
![]() ![]() |
void | SetupPlayerInputComponent
(
UInputComponent* PlayerInputComponent |
Allows a Pawn to set up custom input bindings. |
![]() ![]() |
void | Update all components relevant for navigation generators to match bCanAffectNavigationGeneration flag |
Constants
Name | Description |
---|---|
CollisionComponentName | Name of the CollisionComponent. |
MeshComponentName | Name of the MeshComponent. |
MovementComponentName | Name of the MovementComponent. |