Improve clampVelocity parameter readability

This commit is contained in:
Kung-vr
2019-03-08 20:18:18 +09:00
parent 40b283e313
commit 566762ebce
2 changed files with 2 additions and 2 deletions
@@ -607,7 +607,7 @@ void MoveCenterTabController::resetHmdYawTotal()
m_hmdYawTotal = 0.0; m_hmdYawTotal = 0.0;
} }
void MoveCenterTabController::clampVelocity( double velocity[3] ) void MoveCenterTabController::clampVelocity( double* velocity )
{ {
for ( int i = 0; i < 3; i++ ) for ( int i = 0; i < 3; i++ )
{ {
+1 -1
View File
@@ -126,7 +126,7 @@ private:
double angle ); double angle );
void updateHandTurn( vr::TrackedDevicePose_t* devicePoses, double angle ); void updateHandTurn( vr::TrackedDevicePose_t* devicePoses, double angle );
void updateGravity( double secondsSinceLastTick, double angle ); void updateGravity( double secondsSinceLastTick, double angle );
void clampVelocity( double velocity[3] ); void clampVelocity( double* velocity );
public: public:
void initStage1(); void initStage1();