mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:57:59 +02:00
use world-UP rather than head-UP
This commit is contained in:
parent
49c835b6fc
commit
e6844e2468
1 changed files with 1 additions and 1 deletions
|
@ -1217,7 +1217,7 @@ void MyAvatar::updateMotors() {
|
||||||
// non-hovering = walking: follow camera twist about vertical but not lift
|
// non-hovering = walking: follow camera twist about vertical but not lift
|
||||||
// so we decompose camera's rotation and store the twist part in motorRotation
|
// so we decompose camera's rotation and store the twist part in motorRotation
|
||||||
glm::quat liftRotation;
|
glm::quat liftRotation;
|
||||||
swingTwistDecomposition(getHead()->getCameraOrientation(), getHead()->getUpDirection(), liftRotation, motorRotation);
|
swingTwistDecomposition(getHead()->getCameraOrientation(), _worldUpDirection, liftRotation, motorRotation);
|
||||||
}
|
}
|
||||||
const float DEFAULT_MOTOR_TIMESCALE = 0.2f;
|
const float DEFAULT_MOTOR_TIMESCALE = 0.2f;
|
||||||
const float INVALID_MOTOR_TIMESCALE = 1.0e6f;
|
const float INVALID_MOTOR_TIMESCALE = 1.0e6f;
|
||||||
|
|
Loading…
Reference in a new issue