mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
re-remove the _nextPosition stuff
This commit is contained in:
parent
60824a1fb0
commit
fbaa86426c
3 changed files with 0 additions and 18 deletions
|
@ -62,7 +62,6 @@ bool AvatarUpdate::process() {
|
|||
manager->updateMyAvatar(deltaSeconds);
|
||||
myAvatar->endUpdate();
|
||||
|
||||
|
||||
if (!isThreaded()) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -128,10 +128,6 @@ void AvatarData::nextAttitude(glm::vec3 position, glm::quat orientation) {
|
|||
}
|
||||
void AvatarData::startCapture() {
|
||||
avatarLock.lock();
|
||||
assert(_nextAllowed);
|
||||
_nextAllowed = false;
|
||||
_nextPosition = getPosition();
|
||||
_nextOrientation = getOrientation();
|
||||
}
|
||||
void AvatarData::endCapture() {
|
||||
avatarLock.unlock();
|
||||
|
@ -151,19 +147,10 @@ void AvatarData::endRenderRun() {
|
|||
avatarLock.unlock();
|
||||
}
|
||||
void AvatarData::startRender() {
|
||||
glm::vec3 pos = getPosition();
|
||||
glm::quat rot = getOrientation();
|
||||
setPosition(_nextPosition);
|
||||
setOrientation(_nextOrientation);
|
||||
updateAttitude();
|
||||
_nextPosition = pos;
|
||||
_nextOrientation = rot;
|
||||
}
|
||||
void AvatarData::endRender() {
|
||||
setPosition(_nextPosition);
|
||||
setOrientation(_nextOrientation);
|
||||
updateAttitude();
|
||||
_nextAllowed = true;
|
||||
}
|
||||
|
||||
float AvatarData::getTargetScale() const {
|
||||
|
|
|
@ -363,10 +363,6 @@ public slots:
|
|||
protected:
|
||||
glm::vec3 _handPosition;
|
||||
|
||||
glm::vec3 _nextPosition {};
|
||||
glm::quat _nextOrientation {};
|
||||
bool _nextAllowed {true};
|
||||
|
||||
// Body scale
|
||||
float _targetScale;
|
||||
|
||||
|
|
Loading…
Reference in a new issue