summaryrefslogtreecommitdiff
path: root/playground/src
diff options
context:
space:
mode:
Diffstat (limited to 'playground/src')
-rw-r--r--playground/src/main.rs4
1 files changed, 2 insertions, 2 deletions
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);
}