Navigation
API > API/Plugins > API/Plugins/RigVM > API/Plugins/RigVM/RigVMFunctions > API/Plugins/RigVM/RigVMFunctions/Simulation
Inheritance Hierarchy
- FRigVMStruct
- FRigVMFunction_SimBase
- FRigVMFunction_TimeOffsetFloat
References
| Module | RigVM |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMFunctions/Simulation/RigVMFunction_TimeOffset.h |
| Include | #include "RigVMFunctions/Simulation/RigVMFunction_TimeOffset.h" |
Syntax
USTRUCT&40;
Meta&61;&40;DisplayName&61;"Value Over Time &40;Float&41;", Category&61;"Simulation&124;Time", TemplateName&61;"TimeOffset", Keywords&61;"Buffer,Delta,History,Previous,TimeOffset,Delay"&41;&41;
struct FRigVMFunction_TimeOffsetFloat : public FRigVMFunction_SimBase
Remarks
Records a value over time and can access the value from the past
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< float > | Buffer | ||
| int32 | BufferSize | The sampling precision of the buffer. The higher the more precise - the more memory usage. | |
| TArray< float > | DeltaTimes | ||
| int32 | LastInsertIndex | ||
| float | Result | ||
| float | SecondsAgo | Seconds of time in the past you want to query the value for | |
| float | TimeRange | The maximum time required for offsetting in seconds. | |
| int32 | UpperBound | ||
| float | Value | The value to record |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Execute () |
Execute logic for this struct | |
| void | Initialize () |
Initialize logic for this struct |