Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UNetworkPredictionComponent
- UBaseMovementComponent
- UCharacterMotionComponent
- UMockCharacterAbilityComponent
References
| Module | NetworkPredictionExtras |
| Header | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/CharacterMotionComponent.h |
| Include | #include "CharacterMotionComponent.h" |
Syntax
UCLASS&40;BlueprintType, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class UCharacterMotionComponent : public UBaseMovementComponent
Remarks
ActorComponent for running CharacterMotion
Variables
| Type | Name | Description | |
|---|---|---|---|
| FCharacterMotionSimulation * | ActiveMovementSimulation | ||
| TPimplPtr< FCharacterMotionSimulation > | OwnedMovementSimulation | ||
| FProduceCharacterInput | ProduceInputDelegate |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMaxMoveSpeed
(
float AdditiveMaxMoveSpeed |
||
| void | FinalizeFrame
(
const FCharacterMotionSyncState* SyncState, |
Take output for simulation. | |
| float | |||
| float | |||
| void | InitCharacterMotionSimulation
(
FCharacterMotionSimulation* Simulation |
||
| void | Seed initial values based on component's state. | ||
| void | ProduceInput
(
const int32 DeltaTimeMS, |
Get latest local input prior to simulation step. | |
| void | RestoreFrame
(
const FCharacterMotionSyncState* SyncState, |
Restore a previous frame prior to resimulating. | |
| void | SetMaxMoveSpeed
(
float NewMaxMoveSpeed |
Overridden from UBaseMovementComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnBeginOverlap
(
UPrimitiveComponent* OverlappedComp, |
BeginOverlap has to be bound to a ufunction, so we have no choice but to bind here and forward into simulation code. Not ideal. |
Overridden from UNetworkPredictionComponent
| Type | Name | Description | |
|---|---|---|---|
| void | Network Prediction. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |
Typedefs
| Name | Description |
|---|---|
| FProduceCharacterInput | Forward input producing event to someone else (probably the owning actor) |