mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 00:14:05 +02:00
swap the velocity components
This commit is contained in:
parent
dce73ea428
commit
8ff1ca8af6
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ namespace controller {
|
||||||
glm::mat4 result = original * mat;
|
glm::mat4 result = original * mat;
|
||||||
auto translationOut = ::extractTranslation(result);
|
auto translationOut = ::extractTranslation(result);
|
||||||
auto rotationOut = ::glmExtractRotation(result);
|
auto rotationOut = ::glmExtractRotation(result);
|
||||||
auto velocityOut = velocity + glm::cross(angularVelocity, translation - translationOut); // warning: this may be completely wrong
|
auto velocityOut = velocity + glm::cross(angularVelocity, translationOut - translation); // warning: this may be completely wrong
|
||||||
auto angularVelocityOut = angularVelocity;
|
auto angularVelocityOut = angularVelocity;
|
||||||
|
|
||||||
Pose pose(translationOut,
|
Pose pose(translationOut,
|
||||||
|
|
Loading…
Reference in a new issue