mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Application: fix for jittery hands when moving.
The issue was that the hands are sampled in sensor coordinates. But when the avatar is moved via physics, the sensor to world matrix must be updated to move the hands in the world by the correct amount. These new hand positions are then computed before IK is performed.
This commit is contained in:
parent
d1898eeac6
commit
d7b13d226f
1 changed files with 3 additions and 4 deletions
|
@ -1470,10 +1470,6 @@ void Application::paintGL() {
|
|||
// update the avatar with a fresh HMD pose
|
||||
getMyAvatar()->updateFromHMDSensorMatrix(getHMDSensorPose());
|
||||
|
||||
// update sensorToWorldMatrix for camera and hand controllers
|
||||
getMyAvatar()->updateSensorToWorldMatrix();
|
||||
|
||||
|
||||
auto lodManager = DependencyManager::get<LODManager>();
|
||||
|
||||
|
||||
|
@ -3406,6 +3402,9 @@ void Application::update(float deltaTime) {
|
|||
avatarManager->updateOtherAvatars(deltaTime);
|
||||
}
|
||||
|
||||
// update sensorToWorldMatrix for camera and hand controllers
|
||||
getMyAvatar()->updateSensorToWorldMatrix();
|
||||
|
||||
qApp->updateMyAvatarLookAtPosition();
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue