Module |
|
Header |
/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionDriver.h |
Include |
#include "NetworkPredictionDriver.h" |
static void RestoreFrame
(
DriverType * Driver,
const SyncType * SyncState,
const AuxType * AuxState
)
RestoreFrame
Called prior to beginning rollback frames. This instance should put itself in whatever state it needs to be in for resimulation to run. In practice this should mean getting right collision+component states in sync so that any scene queries will get the correct data.
This can be automated for physics (the PhysicsState can generically marshal the data). We can't do this for kinematic sims.