MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / reset

Method reset

src/csm/ch03/ProjectileApp.java:59–67  ·  view source on GitHub ↗

Resets the simulation.

()

Source from the content-addressed store, hash-verified

57 * Resets the simulation.
58 */
59 @Override
60public void reset() {
61 control.setValue("initial x", 0);
62 control.setValue("initial vx", 10);
63 control.setValue("initial y", 0);
64 control.setValue("initial vy", 10);
65 control.setValue("dt", 0.01);
66 enableStepsPerDisplay(true);
67 }
68
69 /**
70 * Starts the Java application.

Callers

nothing calls this directly

Calls 2

enableStepsPerDisplayMethod · 0.80
setValueMethod · 0.65

Tested by

no test coverage detected