FFlyingMovementSimulation

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

NetworkPredictionExtras

Header

/Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/FlyingMovementSimulation.h

Include

#include "FlyingMovementSimulation.h"

Syntax

class FFlyingMovementSimulation : public FBaseMovementSimulation

Functions

Name Description

Public function

void

 

OnBeginOverlap

(
    UPrimitiveComponent* Overlappe...,
    AActor* Other,
    UPrimitiveComponent* OtherComp,
    int32 OtherBodyIndex,
    bool bFromSweep,
    const FHitResult& SweepResult
)

Callbacks.

Public function

void

 

SimulationTick

(
    const FNetSimTimeStep& TimeStep,
    const TNetSimInput< FlyingMovementS...,
    const TNetSimOutput< FlyingMovement...
)

Main update function

Protected function

float

 

SlideAlongSurface

(
    const FVector& Delta,
    float Time,
    const FQuat Rotation,
    const FVector& Normal,
    FHitResult& Hit,
    bool bHandleImpact
)

Constants

Name

Description

ForceMispredict

Dev tool to force simple mispredict

ROTATOR_TOLERANCE

General tolerance value for rotation checks