mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:48:53 +02:00
Fix end of idle.
This commit is contained in:
parent
cdb697760f
commit
2e5142e9bb
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ void Rig::computeMotionAnimationState(float deltaTime, const glm::vec3& worldPos
|
||||||
float forwardSpeed = glm::dot(worldVelocity, front);
|
float forwardSpeed = glm::dot(worldVelocity, front);
|
||||||
float rightLateralSpeed = glm::dot(worldVelocity, worldRotation * IDENTITY_RIGHT);
|
float rightLateralSpeed = glm::dot(worldVelocity, worldRotation * IDENTITY_RIGHT);
|
||||||
float rightTurningSpeed = glm::orientedAngle(front, _lastFront, IDENTITY_UP) / deltaTime;
|
float rightTurningSpeed = glm::orientedAngle(front, _lastFront, IDENTITY_UP) / deltaTime;
|
||||||
auto updateRole = [=](const QString& role, bool isOn) mutable {
|
auto updateRole = [&](const QString& role, bool isOn) {
|
||||||
isMoving = isMoving || isOn;
|
isMoving = isMoving || isOn;
|
||||||
if (isOn) {
|
if (isOn) {
|
||||||
if (!isRunningRole(role)) {
|
if (!isRunningRole(role)) {
|
||||||
|
|
Loading…
Reference in a new issue