summaryrefslogtreecommitdiff
path: root/lib/core/tests/particles.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-02-17 18:29:22 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-02-17 18:29:22 +0100
commitdcee24278ed28d21cd3addffeeb8e5f9f7248602 (patch)
treed590ede2996f04f69e2c4521019ae5b1bedd05df /lib/core/tests/particles.cpp
parentbb90083ca62483a1cf0e1b72dfb96e05701035ef (diff)
downloadlibs-lbm-dcee24278ed28d21cd3addffeeb8e5f9f7248602.tar.gz
End of dayHEADmasterdev
Diffstat (limited to 'lib/core/tests/particles.cpp')
-rw-r--r--lib/core/tests/particles.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/core/tests/particles.cpp b/lib/core/tests/particles.cpp
index b2581f7..fcca19a 100644
--- a/lib/core/tests/particles.cpp
+++ b/lib/core/tests/particles.cpp
@@ -150,6 +150,29 @@ SAW_TEST("Moving particles 2D"){
SAW_EXPECT(has_collided, "Expecting collision within those steps");
}
+SAW_TEST("Particle Matrix Rotation"){
+ using namespace kel;
+
+ saw::data<sch::Particle<sch::T,2u>> part_a;
+ {
+ auto& body = part_a.template get<"rigid_body">();
+ auto& pos = body.template get<"position">();
+ auto& pos_old = body.template get<"position_old">();
+ auto& coll = part_a.template get<"collision">();
+ auto& radius = coll.template get<"radius">();
+ auto& acc = body.template get<"acceleration">();
+
+ radius.set(1.0);
+
+ pos.at({{0u}}) = -5.0;
+ pos.at({{1u}}) = 0.2;
+ pos_old = pos;
+ }
+
+
+
+}
+
SAW_TEST("Particle Collision Impulse"){
using namespace kel;