mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 07:16:25 +02:00
Change rotationSet to rotationIsDefaultPose for JointData Also for translation. Fixed all code to flip boolean value. Created EntityJointData so that the ModelEntity stuff doesn't need to change.
31 lines
898 B
C++
31 lines
898 B
C++
|
|
#ifndef hifi_JointData_h
|
|
#define hifi_JointData_h
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
class EntityJointData {
|
|
public:
|
|
glm::quat rotation;
|
|
glm::vec3 translation;
|
|
bool rotationSet = false;
|
|
bool translationSet = false;
|
|
};
|
|
|
|
// Used by the avatar mixer to describe a single joint
|
|
// Translations relative to their parent and are in meters.
|
|
// Rotations are absolute (i.e. not relative to parent) and are in rig space.
|
|
class JointData {
|
|
public:
|
|
glm::quat rotation;
|
|
glm::vec3 translation;
|
|
|
|
// This indicates that the rotation or translation is the same as the defaultPose for the avatar.
|
|
// if true, it also means that the rotation or translation value in this structure is not valid and
|
|
// should be replaced by the avatar's actual default pose value.
|
|
bool rotationIsDefaultPose = true;
|
|
bool translationIsDefaultPose = true;
|
|
};
|
|
|
|
#endif
|