Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94255506
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 5, 04:35
Size
472 B
Mime Type
text/x-c
Expires
Sat, Dec 7, 04:35 (2 d)
Engine
blob
Format
Raw Data
Handle
22733519
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