elodin
elodin copied to clipboard
Resume simulation at later point
Need
Given a database, resume a simulation instead of re-simulating it from the beginning.
Problem
The simulation cannot be given a database, read the last or a chosen time, and resume its computation from there.
Solution 1
Add a load_db keyword that will use that database. If load_time is given, use that; otherwise use the last frame in the database as the load point, load the DB values into the simulation and run from there.
world.run(load_db="/path/to/file.db", load_time=0.5)
Source
Sung provided this issue.