From 3489ac1d725c0eadb7d75329f9e6074ed177d125 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 23 Jul 2026 16:53:05 +0200 Subject: Somethings wrong with the particle interaction --- modules/core/c++/particle/particle.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'modules/core/c++/particle') diff --git a/modules/core/c++/particle/particle.hpp b/modules/core/c++/particle/particle.hpp index f759c8d..a3669b4 100644 --- a/modules/core/c++/particle/particle.hpp +++ b/modules/core/c++/particle/particle.hpp @@ -74,9 +74,19 @@ saw::data>> create_sphero } total_mass.at({}) = total_mass.at({}) + dpi; - },{},mask_dims); + + // TODO ? Do mass properly + if constexpr ( D == 2u ) { + total_mass.at({}) = rad_d * rad_d * density.at({}) * 3.141592; + }else if constexpr ( D == 3u ){ + + }else if constexpr ( D== 1u ){ + + } + std::cout<<"Total Mass: "<