Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Physics > API/Runtime/Engine/Physics/FNetworkPhysicsData
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include | #include "Physics/NetworkPhysicsComponent.h" |
virtual void DecayData
(
float DecayAmount
)
Remarks
Use to decay desired data during resimulation if data is forward predicted.
Parameters
| Name | Description |
|---|---|
| DecayAmount | = Total amount of decay as a multiplier. 10% decay = 0.1. NOTE: Decay is not accumulated, the data will be in its original state each time DecayData is called. DecayAmount will increase each time the input is predicted (reused). EXAMPLE: Use to decay steering inputs to make resimulation not predict too much with a high steering value. Use DecayAmount of 0.1 to turn a steering value of 0.5 into 0.45 for example. |