Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/picovr/cpp/DeviceDelegatePicoVR.cpp
Original file line number Diff line number Diff line change
@@ -310,9 +310,7 @@ DeviceDelegatePicoVR::GetReorientTransform() const {

void
DeviceDelegatePicoVR::SetReorientTransform(const vrb::Matrix& aMatrix) {
if (m.type == k6DofHeadSet) {
m.reorientMatrix = aMatrix;
}
m.reorientMatrix = aMatrix;
}

void
@@ -393,7 +391,11 @@ DeviceDelegatePicoVR::StartFrame() {

if (m.renderMode == device::RenderMode::StandAlone) {
if (m.recentered) {
m.reorientMatrix = DeviceUtils::CalculateReorientationMatrix(head, kAverageHeight);
if (m.type == k6DofHeadSet) {
m.reorientMatrix = DeviceUtils::CalculateReorientationMatrix(head, kAverageHeight);
} else {
m.reorientMatrix = vrb::Matrix::Identity();
}
}
head.TranslateInPlace(m.headOffset);
}

0 comments on commit 399e570

Please sign in to comment.