From aa0385d7fc7639b748965f8c029fa1e46d218c0e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 31 Jan 2025 03:29:03 +0100 Subject: fix: resolve build errors --- playground/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'playground') diff --git a/playground/src/main.rs b/playground/src/main.rs index 0ef91ce..8059417 100644 --- a/playground/src/main.rs +++ b/playground/src/main.rs @@ -49,7 +49,7 @@ fn main() { t: 0.0, }; - system.add_anchor_constraint(0); + system.add_anchor_constraint(0, Point::origin()); system.add_beam_constraint([0, 2]); system.add_beam_constraint([1, 2]); system.add_beam_constraint([1, 3]); @@ -120,7 +120,7 @@ fn main() { for _ in 0..10 { system.apply_forces(); - system.enforce_constraints(dt); + system.enforce_constraints(); system.step(dt); } -- cgit v1.2.3