Added many Joints. Parse asmt file.
This commit is contained in:
25
MbDCode/PerpendicularJoint.cpp
Normal file
25
MbDCode/PerpendicularJoint.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "PerpendicularJoint.h"
|
||||
#include "CREATE.h"
|
||||
#include "System.h"
|
||||
|
||||
using namespace MbD;
|
||||
|
||||
MbD::PerpendicularJoint::PerpendicularJoint()
|
||||
{
|
||||
}
|
||||
|
||||
MbD::PerpendicularJoint::PerpendicularJoint(const char* str)
|
||||
{
|
||||
}
|
||||
|
||||
void MbD::PerpendicularJoint::initializeGlobally()
|
||||
{
|
||||
if (constraints->empty())
|
||||
{
|
||||
addConstraint(CREATE<DirectionCosineConstraintIJ>::ConstraintWith(frmI, frmJ, 2, 2));
|
||||
this->root()->hasChanged = true;
|
||||
}
|
||||
else {
|
||||
Joint::initializeGlobally();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user