Simulation
1 node
On this page 1
Simulate
FunctionSimulates a scene and records it frame by frame.
Signature
Simulate -> Simulation Result
scene: Scene Description
duration: Number
framesPerSecond: Number
recordWater: Truth
threads: IntegerSimulationResult Simulate(
SceneDescription scene,
double duration = 2,
double framesPerSecond = 30,
bool recordWater = true,
int threads = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| duration | Number | 2 | Simulated time (s). |
| framesPerSecond | Number | 30 | Frames recorded per simulated second; frame 0 is the scene before the first step. |
| recordWater | Truth | True | Record every water particle in every frame (memory: 12 bytes per particle per frame). |
| threads | Integer | 0 | Worker threads; 0 uses the engine's shared pool. The result does not depend on it. |
Returns
| result | Simulation Result |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Simulation
- Package
- Physics Simulation