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 (
Meta=(DisplayName="Value Over Time (Float)", Category="Simulation|Time", TemplateName="TimeOffset", Keywords="Buffer,Delta,History,Previous,TimeOffset,Delay"))
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 | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
RIGVM_METHOD () |
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize () |
Initialize logic for this struct |