-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFreeJoint.cpp
More file actions
23 lines (21 loc) · 798 Bytes
/
FreeJoint.cpp
File metadata and controls
23 lines (21 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "FreeJoint.h"
FreeJoint::FreeJoint(Node *parent) : Joint(parent)
{
setType(Type::FreeJoint);
setDOF(DOF::TranslationX, new DOF(DOF::TranslationX));
setDOF(DOF::TranslationY, new DOF(DOF::TranslationY));
setDOF(DOF::TranslationZ, new DOF(DOF::TranslationZ));
setDOF(DOF::RotationX, new DOF(DOF::RotationX));
setDOF(DOF::RotationY, new DOF(DOF::RotationY));
setDOF(DOF::RotationZ, new DOF(DOF::RotationZ));
Node::setDOFEnabled(DOF::RotationX, true);
Node::setDOFEnabled(DOF::RotationY, true);
Node::setDOFEnabled(DOF::RotationZ, true);
Node::setDOFEnabled(DOF::TranslationX, true);
Node::setDOFEnabled(DOF::TranslationY, true);
Node::setDOFEnabled(DOF::TranslationZ, true);
Node::setType("Free Joint");
}
FreeJoint::~FreeJoint()
{
}