INNER CODE UNIT · JavaScript

get_conf

loicbourgois/gravitle · front/alpha/index.js:8

const get_conf = () => {
    const conf = utils.get_base_conf_copy();
    conf.width = canvas.width * 0.5;
    conf.height = canvas.height * 0.5;
    conf.wrap_around = true;
    conf.drag_coefficient = 0.01;
    conf.intersection_behavior = 'destroy-link';
    conf.link_intersection_behavior = 'destroy-links';
    conf.default_link_strengh = 1000.0;
    conf.default_link_length = 16.0;
    conf.default_link_thrust_force = 1000.0;
    const diameter = 2.0;
    const big_dimameter = 20.0;
    const big_mass = 20.0;
    conf.particles = [
        {x: -30, y: 10, diameter: diameter},
        {x: -10, y: 10, diameter: diameter},
        {x: 10, y: 10, diameter: diameter},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…