mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:07:52 +02:00
Removed unused variable, changed glm::vec3(0) to glm::vec3()
This commit is contained in:
parent
7996a02bd8
commit
8e504e63b0
2 changed files with 2 additions and 3 deletions
|
@ -1008,7 +1008,6 @@ void Rig::updateNeckJoint(int index, const HeadParameters& params) {
|
||||||
auto& parentState = _jointStates[state.getParentIndex()];
|
auto& parentState = _jointStates[state.getParentIndex()];
|
||||||
|
|
||||||
// get the rotation axes in joint space and use them to adjust the rotation
|
// get the rotation axes in joint space and use them to adjust the rotation
|
||||||
glm::mat3 axes = glm::mat3_cast(glm::quat());
|
|
||||||
glm::mat3 inverse = glm::mat3(glm::inverse(parentState.getTransform() *
|
glm::mat3 inverse = glm::mat3(glm::inverse(parentState.getTransform() *
|
||||||
glm::translate(getJointDefaultTranslationInConstrainedFrame(index)) *
|
glm::translate(getJointDefaultTranslationInConstrainedFrame(index)) *
|
||||||
state.getPreTransform() * glm::mat4_cast(state.getPreRotation())));
|
state.getPreTransform() * glm::mat4_cast(state.getPreRotation())));
|
||||||
|
|
|
@ -62,12 +62,12 @@ public:
|
||||||
float localHeadPitch = 0.0f; // degrees
|
float localHeadPitch = 0.0f; // degrees
|
||||||
float localHeadYaw = 0.0f; // degrees
|
float localHeadYaw = 0.0f; // degrees
|
||||||
float localHeadRoll = 0.0f; // degrees
|
float localHeadRoll = 0.0f; // degrees
|
||||||
glm::vec3 localHeadPosition = glm::vec3(0);
|
glm::vec3 localHeadPosition = glm::vec3();
|
||||||
bool isInHMD = false;
|
bool isInHMD = false;
|
||||||
glm::quat worldHeadOrientation = glm::quat();
|
glm::quat worldHeadOrientation = glm::quat();
|
||||||
glm::vec3 eyeLookAt = glm::vec3(); // world space
|
glm::vec3 eyeLookAt = glm::vec3(); // world space
|
||||||
glm::vec3 eyeSaccade = glm::vec3(); // world space
|
glm::vec3 eyeSaccade = glm::vec3(); // world space
|
||||||
glm::vec3 modelTranslation = glm::vec3(0);
|
glm::vec3 modelTranslation = glm::vec3();
|
||||||
int leanJointIndex = -1;
|
int leanJointIndex = -1;
|
||||||
int neckJointIndex = -1;
|
int neckJointIndex = -1;
|
||||||
int leftEyeJointIndex = -1;
|
int leftEyeJointIndex = -1;
|
||||||
|
|
Loading…
Reference in a new issue