function nextForce(obj) { // returns the force to be applied on the object return lively.pt(0, 0.98); // change the constant, e.g. negate it, and save with Cmd+S // create a slider and connect it to the gravity constant! // use other types of force e.g. // return this.getCenter().subPt(obj.p).normalized(); }
Reset
Stop
Start
Simulation
X
M