Page MenuHomec4science

partsystem.cpp
No OneTemporary

File Metadata

Created
Thu, Dec 5, 04:35

partsystem.cpp

#include "partsystem.h"
PartSystem::PartSystem( sid_t sid,
const std::vector<MatPoint*>& particles,
const std::string label,
const struct render_s *flags)
: Shape(sid, label, flags)
{
this->particles = particles;
}
PartSystem::~PartSystem()
{
}
void PartSystem::update(const float &dt)
{
for (auto mass : particles)
mass->update(dt);
}

Event Timeline