Navigation
API > API/Plugins > API/Plugins/RigVM > API/Plugins/RigVM/RigVMFunctions > API/Plugins/RigVM/RigVMFunctions/Simulation
Inheritance Hierarchy
- FRigVMStruct
- FRigVMFunction_SimBase
- FRigVMFunction_VerletIntegrateVector
References
| Module | RigVM |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMFunctions/Simulation/RigVMFunction_Verlet.h |
| Include | #include "RigVMFunctions/Simulation/RigVMFunction_Verlet.h" |
Syntax
USTRUCT&40;
Meta&61;&40;DisplayName&61;"Verlet &40;Vector&41;", Category&61;"Simulation&124;Springs", TemplateName&61;"Verlet", Keywords&61;"Simulate,Integrate"&41;&41;
struct FRigVMFunction_VerletIntegrateVector : public FRigVMFunction_SimBase
Remarks
Simulates a single position over time using Verlet integration. It is recommended to use SpringInterp instead as it is more accurate and stable, and has more meaningful parameters.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | Acceleration | ||
| bool | bInitialized | ||
| float | Blend | The amount of blending to apply per second | |
| float | Damp | The amount of damping to apply ( 0.0 to 1.0, but usually really low like 0.005 ) | |
| FVector | Force | The force feeding into the solver. Can be used for gravity. | |
| FRigVMSimPoint | Point | ||
| FVector | Position | ||
| float | Strength | The strength of the verlet spring | |
| FVector | Target | ||
| FVector | Velocity |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Execute () |
Execute logic for this struct |