From abeea9920c11231ed24db00e9f68b4490c12a61b Mon Sep 17 00:00:00 2001
From: "Claudius \"keldu\" Holeksa" <mail@keldu.de>
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/particle.hpp')

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<typename T, uint64_t D>
 using ParticleMask = Struct<
 	Member<Array<T,D>, "mask">
 >;
+
+template<typename T, uint64_t D>
+using Particle = Struct<
+	Member<ParticleRigidBody<T,D>, "rigid_body">
+>;
 }
+
+template<typename T, uint64_t D>
+class particle_system {
+private:
+	saw::data<sch::Array<sch::Particle<T,D>>> particles_;
+public:
+
+	void step(T time_step){
+		for(auto& iter : particles_){
+		}
+	}
+};
 }
 }
-- 
cgit v1.2.3