mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:17:58 +02:00
remove a left-over kludge that was causing the appearence of frame-lag in held objects
This commit is contained in:
parent
439bdbc0e4
commit
270b4b97fc
1 changed files with 0 additions and 2 deletions
|
@ -109,8 +109,6 @@ void AvatarActionHold::doKinematicUpdate(float deltaTimeStep) {
|
||||||
if (_previousSet) {
|
if (_previousSet) {
|
||||||
glm::vec3 positionalVelocity = (_positionalTarget - _previousPositionalTarget) / deltaTimeStep;
|
glm::vec3 positionalVelocity = (_positionalTarget - _previousPositionalTarget) / deltaTimeStep;
|
||||||
rigidBody->setLinearVelocity(glmToBullet(positionalVelocity));
|
rigidBody->setLinearVelocity(glmToBullet(positionalVelocity));
|
||||||
// back up along velocity a bit in order to smooth out a "vibrating" appearance
|
|
||||||
_positionalTarget -= positionalVelocity * deltaTimeStep / 2.0f;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue