mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 12:24:01 +02:00
Enable "center UI" to be triggered on rotation
This commit is contained in:
parent
d2b15d7cba
commit
9f95b101fe
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ bool OverlayConductor::headNotCenteredInOverlay() const {
|
|||
glm::vec3 uiForward = uiTransform.getRotation() * glm::vec3(0.0f, 0.0f, -1.0f);
|
||||
|
||||
const float MAX_COMPOSITOR_DISTANCE = 0.33f;
|
||||
const float MAX_COMPOSITOR_ANGLE = 180.0f; // rotation check is effectively disabled
|
||||
const float MAX_COMPOSITOR_ANGLE = 90.0f;
|
||||
if (glm::distance(uiPos, hmdPos) > MAX_COMPOSITOR_DISTANCE ||
|
||||
glm::dot(uiForward, hmdForward) < cosf(glm::radians(MAX_COMPOSITOR_ANGLE))) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue