From 5479ab8478ecd1b5750c8e82aece198652bf39d3 Mon Sep 17 00:00:00 2001 From: Zhen Li <45376537+li3zhen1@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:59:52 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f2eb02..f51429c 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ let links: [(Node.ID, Node.ID)] = ... let sim = Simulation2D(nodeIds: nodeIds, alphaDecay: 0.01) sim.createManyBodyForce(strength: -12) sim.createLinkForce(links) -sim.createCenterForce(center: Vector2d(0, 0), strength: 0.4) +sim.createCenterForce(center: [0, 0], strength: 0.4) sim.createCollideForce(radius: .constant(3)) /// Force is ready to start! run `tick` to iterate the simulation.