Force calculated from velocity of object. Reads velocity and influences acceleration.
let t = { position: Points.random(), mass: 0.1 };const friction = velocityForce(0.1, `dampen`);// Apply force, updating position and velocityt = Forces.apply(t, friction); Copy
let t = { position: Points.random(), mass: 0.1 };const friction = velocityForce(0.1, `dampen`);// Apply force, updating position and velocityt = Forces.apply(t, friction);
Force
How to factor in mass
Function that computes force
Force calculated from velocity of object. Reads velocity and influences acceleration.