summaryrefslogtreecommitdiff
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
parent87f4cefcf7cd72357b4f47d409942e27c5e2f689 (diff)
downloadparticle-physics-aa0385d7fc7639b748965f8c029fa1e46d218c0e.tar.gz
fix: resolve build errorsHEADmaster
-rw-r--r--physics/src/constraint/mod.rs1
-rw-r--r--playground/src/main.rs4
2 files changed, 2 insertions, 3 deletions
diff --git a/physics/src/constraint/mod.rs b/physics/src/constraint/mod.rs
index 4df1c8e..ed9e603 100644
--- a/physics/src/constraint/mod.rs
+++ b/physics/src/constraint/mod.rs
@@ -4,7 +4,6 @@ use crate::algebra::{Scalar, N};
use crate::particle_system::ParticleSystem;
pub mod beam;
pub mod slider;
-pub mod subspace_distance;
pub const SPRING_CONSTANT: Scalar = 16.0;
pub const DAMPING_CONSTANT: Scalar = 4.0;
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);
}