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