Navigation
API > API/Plugins > API/Plugins/MoverExamples
MoverExamplesCharacter: the base pawn class used by the MoverExamples plugin. Handles coalescing of input events. Cannot be instantiated on its own.
| Name | AMoverExamplesCharacter |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MoverExamples/Source/MoverExamples/Public/MoverExamplesCharacter.h |
| Include Path | #include "MoverExamplesCharacter.h" |
Syntax
UCLASS (Abstract)
class AMoverExamplesCharacter :
public APawn ,
public IMoverInputProducerInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → APawn → AMoverExamplesCharacter
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AMoverExamplesCharacter
(
const FObjectInitializer& ObjectInitializer |
Sets default values for this pawn's properties. | MoverExamplesCharacter.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bMaintainLastInputOrientation | bool | If true, the actor will continue orienting towards the last intended orientation (from input) even after movement intent input has ceased. | MoverExamplesCharacter.h |
|
| bOrientRotationToMovement | bool | If true, rotate the Character toward the direction the actor is moving | MoverExamplesCharacter.h |
|
| bUseBaseRelativeMovement | bool | Whether or not we author our movement inputs relative to whatever base we're standing on, or leave them in world space. Only applies if standing on a base of some sort. | MoverExamplesCharacter.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasProduceInputinBpFunc | uint8 | MoverExamplesCharacter.h | ||
| bIsFlyingActive | bool | MoverExamplesCharacter.h | ||
| bIsJumpJustPressed | bool | MoverExamplesCharacter.h | ||
| bIsJumpPressed | bool | MoverExamplesCharacter.h | ||
| bShouldToggleFlying | bool | MoverExamplesCharacter.h | ||
| CachedLookInput | FRotator | MoverExamplesCharacter.h | ||
| CachedMoveInputIntent | FVector | MoverExamplesCharacter.h | ||
| CachedMoveInputVelocity | FVector | MoverExamplesCharacter.h | ||
| CachedTurnInput | FRotator | MoverExamplesCharacter.h | ||
| LastAffirmativeMoveInput | FVector | MoverExamplesCharacter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCharacterMoverComponent * GetMoverComponent() |
Accessor for the actor's movement component. | MoverExamplesCharacter.h |
|
virtual void RequestMoveByIntent
(
const FVector& DesiredIntent |
Request the character starts moving with an intended directional magnitude. A length of 1 indicates maximum acceleration. | MoverExamplesCharacter.h |
|
virtual void RequestMoveByVelocity
(
const FVector& DesiredVelocity |
Request the character starts moving with a desired velocity. This will be used in lieu of any other input. | MoverExamplesCharacter.h |
|
Overridden from APawn
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetupPlayerInputComponent
(
UInputComponent* PlayerInputComponent |
Called to bind functionality to input. | MoverExamplesCharacter.h | |
virtual void UpdateNavigationRelevance() |
MoverExamplesCharacter.h |
Overridden from AActor
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginPlay() |
MoverExamplesCharacter.h | ||
virtual void PostInitializeComponents() |
MoverExamplesCharacter.h | ||
virtual void Tick
(
float DeltaTime |
Called every frame. | MoverExamplesCharacter.h |
Overridden from INavAgentInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector GetNavAgentLocation() |
MoverExamplesCharacter.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnProduceInput
(
float DeltaMs, |
Override this function in native class to author input for the next simulation frame. Consider also calling Super method. | MoverExamplesCharacter.h | |
FMoverInputCmdContext OnProduceInputInBlueprint
(
float DeltaMs, |
Implement this event in Blueprints to author input for the next simulation frame. Consider also calling Parent event. | MoverExamplesCharacter.h |
|
virtual void ProduceInput_Implementation
(
int32 SimTimeMs, |
Entry point for input production. Do not override. To extend in derived character types, override OnProduceInput for native types or implement "Produce Input" blueprint event. | MoverExamplesCharacter.h |