mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:43:31 +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),
|
_eyeContactTarget(LEFT_EYE),
|
||||||
_realWorldFieldOfView("realWorldFieldOfView",
|
_realWorldFieldOfView("realWorldFieldOfView",
|
||||||
DEFAULT_REAL_WORLD_FIELD_OF_VIEW_DEGREES),
|
DEFAULT_REAL_WORLD_FIELD_OF_VIEW_DEGREES),
|
||||||
_useAdvancedMovementControls("advancedMovementForHandControllersIsChecked", false),
|
|
||||||
_smoothOrientationTimer(std::numeric_limits<float>::max()),
|
_smoothOrientationTimer(std::numeric_limits<float>::max()),
|
||||||
|
_useAdvancedMovementControls("advancedMovementForHandControllersIsChecked", true),
|
||||||
_smoothOrientationInitial(),
|
_smoothOrientationInitial(),
|
||||||
_smoothOrientationTarget(),
|
_smoothOrientationTarget(),
|
||||||
_hmdSensorMatrix(),
|
_hmdSensorMatrix(),
|
||||||
|
@ -444,7 +444,6 @@ void MyAvatar::reset(bool andRecenter, bool andReload, bool andHead) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::update(float deltaTime) {
|
void MyAvatar::update(float deltaTime) {
|
||||||
|
|
||||||
// update moving average of HMD facing in xz plane.
|
// update moving average of HMD facing in xz plane.
|
||||||
const float HMD_FACING_TIMESCALE = getRotationRecenterFilterLength();
|
const float HMD_FACING_TIMESCALE = getRotationRecenterFilterLength();
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@ void setupPreferences() {
|
||||||
auto getter = [myAvatar]()->bool { return myAvatar->useAdvancedMovementControls(); };
|
auto getter = [myAvatar]()->bool { return myAvatar->useAdvancedMovementControls(); };
|
||||||
auto setter = [myAvatar](bool value) { myAvatar->setUseAdvancedMovementControls(value); };
|
auto setter = [myAvatar](bool value) { myAvatar->setUseAdvancedMovementControls(value); };
|
||||||
preferences->addPreference(new CheckPreference(VR_MOVEMENT,
|
preferences->addPreference(new CheckPreference(VR_MOVEMENT,
|
||||||
QStringLiteral("Advanced movement for hand controllers"),
|
QStringLiteral("Advanced movement for VR (Teleport movement when unchecked)"),
|
||||||
getter, setter));
|
getter, setter));
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue