From abeea9920c11231ed24db00e9f68b4490c12a61b Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 10 Apr 2025 15:21:55 +0200 Subject: Reworking from AoS to SoA for data handling --- c++/particle/particle.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'c++/particle') diff --git a/c++/particle/particle.hpp b/c++/particle/particle.hpp index fd0ff59..58c028c 100644 --- a/c++/particle/particle.hpp +++ b/c++/particle/particle.hpp @@ -20,6 +20,23 @@ template using ParticleMask = Struct< Member, "mask"> >; + +template +using Particle = Struct< + Member, "rigid_body"> +>; } + +template +class particle_system { +private: + saw::data>> particles_; +public: + + void step(T time_step){ + for(auto& iter : particles_){ + } + } +}; } } -- cgit v1.2.3