mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 18:02:13 +02:00
adding implementation
This commit is contained in:
parent
50684f00c8
commit
c32cc1ead2
2 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue