summaryrefslogtreecommitdiff
path: root/playground
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2025-01-31 03:29:03 +0100
committereug-vs <eugene@eug-vs.xyz>2025-01-31 03:30:03 +0100
commitaa0385d7fc7639b748965f8c029fa1e46d218c0e (patch)
tree211f7cad878c2848a412dbea3e5f7a165b4a12ad /playground
parent87f4cefcf7cd72357b4f47d409942e27c5e2f689 (diff)
downloadparticle-physics-aa0385d7fc7639b748965f8c029fa1e46d218c0e.tar.gz
fix: resolve build errorsHEADmaster
Diffstat (limited to 'playground')
-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);
}