Second commit

This commit is contained in:
Aik-Siong Koh
2023-04-28 16:29:43 -06:00
parent dd01694484
commit 8ca8eb7122
18 changed files with 329 additions and 51 deletions

View File

@@ -1 +1,13 @@
#include "System.h"
void MbD::System::addPart(std::shared_ptr<Part> part)
{
part->setSystem(*this);
parts.push_back(part);
}
MbD::System::System() {
parts = std::vector<std::shared_ptr<Part>>();
jointsMotions = std::vector<std::shared_ptr<Joint>>();
systemSolver = std::make_shared<SystemSolver>(*this);
}