Skip to content

Commit

Permalink
Only enable hibernate if the hand is above the headset
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Oct 26, 2023
1 parent 77a554e commit b95f53d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/APILayer/HandTrackingSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ void HandTrackingSource::UpdateHand(const FrameInfo& frameInfo, Hand* hand) {
Config::HandTrackingHibernateIntervalMilliseconds
&& Config::HandTrackingHibernateCutoff > 0.001
&& rotation.x >= Config::HandTrackingHibernateCutoff
&& hand->mState.mPose->position.y > frameInfo.mViewInLocal.position.y
&& std::chrono::nanoseconds(frameInfo.mNow - mLastHibernationChangeAt)
>= std::chrono::milliseconds(
Config::HandTrackingHibernateIntervalMilliseconds)) {
Expand Down

0 comments on commit b95f53d

Please sign in to comment.