Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Inheritance Hierarchy
- FBaseMovementSimulation
- FCharacterMotionSimulation
- FMockCharacterAbilitySimulation
References
Module | NetworkPredictionExtras |
Header | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/CharacterMotionSimulation.h |
Include | #include "CharacterMotionSimulation.h" |
Syntax
class FCharacterMotionSimulation : public FBaseMovementSimulation
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FFloorTestResult | CachedFloor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | ComputeFloorDist
(
const TNetSimInput< CharacterMotionStateTypes >& Input, |
|
![]() ![]() ![]() |
FVector | ComputeGravity
(
float DeltaSeconds, |
|
![]() ![]() ![]() |
FVector | ComputeLocalInput
(
const FNetSimTimeStep& TimeStep, |
|
![]() ![]() ![]() |
FRotator | ComputeLocalRotation
(
const FNetSimTimeStep& TimeStep, |
|
![]() ![]() ![]() |
FVector | ComputeSlideVector
(
const FVector& Delta, |
|
![]() ![]() ![]() |
FVector | ComputeVelocity
(
float DeltaSeconds, |
Computes a velocity based on InputVelocity and current state. |
![]() ![]() ![]() |
void | FindFloor
(
const TNetSimInput< CharacterMotionStateTypes >& Input, |
|
![]() ![]() ![]() |
bool | FloorSweepTest
(
FHitResult& OutHit, |
|
![]() ![]() |
void | Called at start of simulation to avoid using old cached values. | |
![]() ![]() ![]() |
bool | IsExceedingMaxSpeed
(
const FVector& Velocity, |
|
![]() ![]() ![]() |
bool | IsValidLandingSpot
(
const FVector& Location, |
|
![]() ![]() ![]() |
bool | IsWalkable
(
const FHitResult& Hit, |
|
![]() ![]() |
void | Movement_Falling
(
float DeltaSeconds, |
|
![]() ![]() |
void | Movement_Walking
(
float DeltaSeconds, |
|
![]() |
void | OnBeginOverlap
(
UPrimitiveComponent* OverlappedComp, |
Callbacks. |
![]() ![]() |
void | PerformMovement
(
float DeltaSeconds, |
|
![]() ![]() |
void | SetMovementMode
(
ECharacterMovementMode MovementMode, |
|
![]() |
void | SimulationTick
(
const FNetSimTimeStep& TimeStep, |
Main update function |
![]() ![]() |
float | SlideAlongSurface
(
const FVector& Delta, |
|
![]() ![]() ![]() |
void | TwoWallAdjust
(
FVector& OutDelta, |
Constants
Name | Description |
---|---|
ForceMispredict | Dev tool to force simple mispredict |
ROTATOR_TOLERANCE | General tolerance value for rotation checks |