mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 17:19:07 +02:00
Revert "Merge pull request #9150 from hyperlogic/bug-fix/driving-while-flying-in-hmd"
This reverts commita69d77ffbe
, reversing changes made to996d3f5875
.
This commit is contained in:
parent
e8b5b56df7
commit
49ce04e214
2 changed files with 2 additions and 7 deletions
|
@ -467,8 +467,6 @@ void MyAvatar::simulate(float deltaTime) {
|
||||||
|
|
||||||
if (_characterController.getState() != CharacterController::State::Hover) {
|
if (_characterController.getState() != CharacterController::State::Hover) {
|
||||||
updateSensorToWorldMatrix(_enableVerticalComfortMode ? SensorToWorldUpdateMode::VerticalComfort : SensorToWorldUpdateMode::Vertical);
|
updateSensorToWorldMatrix(_enableVerticalComfortMode ? SensorToWorldUpdateMode::VerticalComfort : SensorToWorldUpdateMode::Vertical);
|
||||||
} else {
|
|
||||||
updateSensorToWorldMatrix(SensorToWorldUpdateMode::None);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -618,8 +616,6 @@ void MyAvatar::updateSensorToWorldMatrix(SensorToWorldUpdateMode mode) {
|
||||||
} else if (mode == SensorToWorldUpdateMode::Vertical) {
|
} else if (mode == SensorToWorldUpdateMode::Vertical) {
|
||||||
setSensorToWorldMatrix(sensorToWorldMat);
|
setSensorToWorldMatrix(sensorToWorldMat);
|
||||||
}
|
}
|
||||||
} else if (mode == SensorToWorldUpdateMode::None) {
|
|
||||||
setSensorToWorldMatrix(_sensorToWorldMatrix);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1901,7 +1897,7 @@ void MyAvatar::applyVelocityToSensorToWorldMatrix(const glm::vec3& velocity, flo
|
||||||
// update the position column of matrix
|
// update the position column of matrix
|
||||||
glm::mat4 newSensorToWorldMatrix = _sensorToWorldMatrix;
|
glm::mat4 newSensorToWorldMatrix = _sensorToWorldMatrix;
|
||||||
newSensorToWorldMatrix[3] = glm::vec4(position, 1.0f);
|
newSensorToWorldMatrix[3] = glm::vec4(position, 1.0f);
|
||||||
_sensorToWorldMatrix = newSensorToWorldMatrix;
|
setSensorToWorldMatrix(newSensorToWorldMatrix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -192,8 +192,7 @@ public:
|
||||||
enum class SensorToWorldUpdateMode {
|
enum class SensorToWorldUpdateMode {
|
||||||
Full = 0,
|
Full = 0,
|
||||||
Vertical,
|
Vertical,
|
||||||
VerticalComfort,
|
VerticalComfort
|
||||||
None
|
|
||||||
};
|
};
|
||||||
void updateSensorToWorldMatrix(SensorToWorldUpdateMode mode = SensorToWorldUpdateMode::Full);
|
void updateSensorToWorldMatrix(SensorToWorldUpdateMode mode = SensorToWorldUpdateMode::Full);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue