mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 21:35:45 +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) {
|
||||
glm::vec3 positionalVelocity = (_positionalTarget - _previousPositionalTarget) / deltaTimeStep;
|
||||
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