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:
Anthony J. Thibault 2016-04-04 12:36:18 -07:00
parent d1898eeac6
commit d7b13d226f

View file

@ -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();
{