mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Fix for upward jerk, when switching between domains.
This commit is contained in:
parent
81db8f7e08
commit
35aebd21e6
1 changed files with 2 additions and 1 deletions
|
@ -507,7 +507,8 @@ void CharacterController::setFollowParameters(const glm::mat4& desiredWorldBodyM
|
|||
// character is snapping to avatar position or avatar is stopping quickly
|
||||
// HACK: slam _followVelocity and _rigidBody velocity immediately
|
||||
_followVelocity = newFollowVelocity;
|
||||
_rigidBody->setLinearVelocity(_followVelocity);
|
||||
newFollowVelocity.setY(0.0f);
|
||||
_rigidBody->setLinearVelocity(newFollowVelocity);
|
||||
} else {
|
||||
// use simple blending to filter noise from the velocity measurement
|
||||
const float blend = 0.2f;
|
||||
|
|
Loading…
Reference in a new issue