Code Monkey home page Code Monkey logo

particle-life's People

Contributors

tom-mohr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

particle-life's Issues

Feature Request: Saving Configs

After playing around with the fantastic simulator for a whole week...... I found 10+ ways of playing the simulations!
However every time I restart, I need to manually readjust the bars to the right config, which I screenshoted with my phone's camera.
If only the app could save the configs ... save into something like JSON or YAML (I'm not very familiar with Java practices)
And then we could even share them with more convenience!

PhysicsSettings should not contain "n"

The number of particles is not a "physics setting" and should therefore not be included in the "PhysicsSettings" class.
Furthermore, the number of particles should only be stored implicitly as the length of the particles array.
That means, that the current logic of "first changing settings.n, then adapting the length of the particles array accordingly" is not really good design. Instead, there should be explicit methods for changing the size of the particle array.

PhysicsSettings should not contain autoDt, fallbackDt and maxDt

Instead, only have one field dt that is changed whenever needed.
The existing fields autoDt, fallbackDt and maxDt and their corresponding logic should still exists somewhere else, but not here.
Best solution is probably to extract that whole asynchronous looping to a class that only takes care of this and wraps the Physics class.
So there will exists the regular "Physics" class, but without the asynchronous looping functionality, and a new "AsyncPhysics" class that contains the asynchronous looping functionality and acts as a wrapper around the "Physics" class.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.