adding implementation

This commit is contained in:
Wayne Chen 2018-08-22 15:42:15 -07:00
parent 50684f00c8
commit c32cc1ead2
2 changed files with 2 additions and 3 deletions

View file

@ -105,8 +105,8 @@ MyAvatar::MyAvatar(QThread* thread) :
_eyeContactTarget(LEFT_EYE),
_realWorldFieldOfView("realWorldFieldOfView",
DEFAULT_REAL_WORLD_FIELD_OF_VIEW_DEGREES),
_useAdvancedMovementControls("advancedMovementForHandControllersIsChecked", false),
_smoothOrientationTimer(std::numeric_limits<float>::max()),
_useAdvancedMovementControls("advancedMovementForHandControllersIsChecked", true),
_smoothOrientationInitial(),
_smoothOrientationTarget(),
_hmdSensorMatrix(),
@ -444,7 +444,6 @@ void MyAvatar::reset(bool andRecenter, bool andReload, bool andHead) {
}
void MyAvatar::update(float deltaTime) {
// update moving average of HMD facing in xz plane.
const float HMD_FACING_TIMESCALE = getRotationRecenterFilterLength();

View file

@ -272,7 +272,7 @@ void setupPreferences() {
auto getter = [myAvatar]()->bool { return myAvatar->useAdvancedMovementControls(); };
auto setter = [myAvatar](bool value) { myAvatar->setUseAdvancedMovementControls(value); };
preferences->addPreference(new CheckPreference(VR_MOVEMENT,
QStringLiteral("Advanced movement for hand controllers"),
QStringLiteral("Advanced movement for VR (Teleport movement when unchecked)"),
getter, setter));
}
{