Overte C++ Documentation
JointData.h
1 
2 #ifndef hifi_JointData_h
3 #define hifi_JointData_h
4 
5 #include <glm/glm.hpp>
6 #include <glm/gtc/quaternion.hpp>
7 
8 class EntityJointData {
9 public:
10  glm::quat rotation;
11  glm::vec3 translation;
12  bool rotationSet = false;
13  bool translationSet = false;
14 };
15 
16 // Used by the avatar mixer to describe a single joint
17 // Translations relative to their parent joint
18 // Rotations are absolute (i.e. not relative to parent) and are in rig space.
19 // No JSDoc because it's not provided as a type to the script engine.
20 class JointData {
21 public:
22  glm::quat rotation;
23  glm::vec3 translation;
24 
25  // This indicates that the rotation or translation is the same as the defaultPose for the avatar.
26  // if true, it also means that the rotation or translation value in this structure is not valid and
27  // should be replaced by the avatar's actual default pose value.
28  bool rotationIsDefaultPose = true;
29  bool translationIsDefaultPose = true;
30 };
31 
32 #endif