mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-16 09:53:29 +02:00
use START_LOCATION as default settings
This commit is contained in:
parent
d1a262bb56
commit
2d0e4fb94f
1 changed files with 4 additions and 4 deletions
|
@ -163,7 +163,7 @@ void MyAvatar::simulate(float deltaTime) {
|
|||
// update position
|
||||
if (glm::length2(_velocity) < EPSILON) {
|
||||
_velocity = glm::vec3(0.0f);
|
||||
} else {
|
||||
} else {
|
||||
_position += _velocity * deltaTime;
|
||||
}
|
||||
}
|
||||
|
@ -456,9 +456,9 @@ void MyAvatar::loadData(QSettings* settings) {
|
|||
|
||||
getHead()->setBasePitch(loadSetting(settings, "headPitch", 0.0f));
|
||||
|
||||
_position.x = loadSetting(settings, "position_x", 0.0f);
|
||||
_position.y = loadSetting(settings, "position_y", 0.0f);
|
||||
_position.z = loadSetting(settings, "position_z", 0.0f);
|
||||
_position.x = loadSetting(settings, "position_x", START_LOCATION.x);
|
||||
_position.y = loadSetting(settings, "position_y", START_LOCATION.x);
|
||||
_position.z = loadSetting(settings, "position_z", START_LOCATION.z);
|
||||
|
||||
getHead()->setPupilDilation(loadSetting(settings, "pupilDilation", 0.0f));
|
||||
|
||||
|
|
Loading…
Reference in a new issue