Verlet Objects can be instantiated by using the static methods from the Verlet class
Scene scene = Verlet.createScene();
// (xPos, yPos, constraintRadius)
Constraint circleConstraint = new CircleAreaConstraint(0, 0, 200);
scene.addConstraint(circleConstraint);
// (xPos, yPos, sphereRadius)
Sphere sphere = Verlet.createSphere(-75, 25, 10);
scene.addSphere(sphere);
Solver solver = Verlet.createSolver(scene);
VerletPanel panel = new VerletPanel(scene);
// Assuming there is a JFrame present frame.add(panel);
- Setup runtime
```java
public void tick() {
// Steps the entire simulation. Parameter decides how far it steps
solver.step(0.02f);
// Renders the new Scene onto the panel
panel.repaint();
}