Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95019061
partsystem.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 12, 05:06
Size
472 B
Mime Type
text/x-c
Expires
Sat, Dec 14, 05:06 (2 d)
Engine
blob
Format
Raw Data
Handle
22916530
Attached To
rSYMKIT symkit
partsystem.cpp
View Options
#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
Log In to Comment