From 566762ebce0e7e21e85c41d5a77a0af2fe1f922d Mon Sep 17 00:00:00 2001 From: Kung-vr Date: Fri, 8 Mar 2019 20:18:18 +0900 Subject: [PATCH] Improve clampVelocity parameter readability --- src/tabcontrollers/MoveCenterTabController.cpp | 2 +- src/tabcontrollers/MoveCenterTabController.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabcontrollers/MoveCenterTabController.cpp b/src/tabcontrollers/MoveCenterTabController.cpp index d3d0896..d4bcc69 100644 --- a/src/tabcontrollers/MoveCenterTabController.cpp +++ b/src/tabcontrollers/MoveCenterTabController.cpp @@ -607,7 +607,7 @@ void MoveCenterTabController::resetHmdYawTotal() m_hmdYawTotal = 0.0; } -void MoveCenterTabController::clampVelocity( double velocity[3] ) +void MoveCenterTabController::clampVelocity( double* velocity ) { for ( int i = 0; i < 3; i++ ) { diff --git a/src/tabcontrollers/MoveCenterTabController.h b/src/tabcontrollers/MoveCenterTabController.h index 4b61c98..d72dfdf 100644 --- a/src/tabcontrollers/MoveCenterTabController.h +++ b/src/tabcontrollers/MoveCenterTabController.h @@ -126,7 +126,7 @@ private: double angle ); void updateHandTurn( vr::TrackedDevicePose_t* devicePoses, double angle ); void updateGravity( double secondsSinceLastTick, double angle ); - void clampVelocity( double velocity[3] ); + void clampVelocity( double* velocity ); public: void initStage1();