mirror of
https://github.com/overte-org/overte.git
synced 2025-07-15 01:36:55 +02:00
* Moved JointData into shared library * added methods to the rig to copy into and out of JointData * JointData translations must be in meters this is so the fixed point compression wont overflow, also, it's a consistent wire format.
18 lines
396 B
C++
18 lines
396 B
C++
|
|
#ifndef hifi_JointData_h
|
|
#define hifi_JointData_h
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
// Used by the avatar mixer to describe a single joint
|
|
// These are relative to their parent and translations are in meters
|
|
class JointData {
|
|
public:
|
|
glm::quat rotation;
|
|
bool rotationSet = false;
|
|
glm::vec3 translation; // meters
|
|
bool translationSet = false;
|
|
};
|
|
|
|
#endif
|