Divooka Reference

Simulation

1 node

On this page 1

Simulate

Function

Simulates a scene and records it frame by frame.

Signature
Simulate -> Simulation Result
    scene: Scene Description
    duration: Number
    framesPerSecond: Number
    recordWater: Truth
    threads: Integer
SimulationResult Simulate(
    SceneDescription scene,
    double duration = 2,
    double framesPerSecond = 30,
    bool recordWater = true,
    int threads = 0)

Parameters

nametypedefaultdescription
sceneScene Description—The scene.
durationNumber2Simulated time (s).
framesPerSecondNumber30Frames recorded per simulated second; frame 0 is the scene before the first step.
recordWaterTruthTrueRecord every water particle in every frame (memory: 12 bytes per particle per frame).
threadsInteger0Worker threads; 0 uses the engine's shared pool. The result does not depend on it.

Returns

resultSimulation Result
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simulation
Package
Physics Simulation