Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: chrome/browser/android/vr_shell/elbow_model.cc

Issue 2853843002: Fix controller positioning in VrShell when gyro reads are small (Closed)
Patch Set: Dchecking not null quat Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/vr/vr_math.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/elbow_model.cc
diff --git a/chrome/browser/android/vr_shell/elbow_model.cc b/chrome/browser/android/vr_shell/elbow_model.cc
index f71ece01a3eaa3a2a2ab7f61fe625a0307d112cf..f2cd825af75f56f90515bedbbf356bf0e49d46ee 100644
--- a/chrome/browser/android/vr_shell/elbow_model.cc
+++ b/chrome/browser/android/vr_shell/elbow_model.cc
@@ -32,9 +32,7 @@ constexpr float kDefaultElbowRotationRatio = 0.4f;
} // namespace
ElbowModel::ElbowModel(gvr::ControllerHandedness handedness)
- : handedness_(handedness),
- alpha_value_(1.0f),
- torso_direction_{0.0f, 0.0f, 0.0f} {}
+ : handedness_(handedness), alpha_value_(1.0f), torso_direction_(kForward) {}
ElbowModel::~ElbowModel() = default;
« no previous file with comments | « no previous file | device/vr/vr_math.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698