mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 06:26:28 +02:00
fix rotation function
This commit is contained in:
parent
bae51bcfd4
commit
3a8de5ab0d
1 changed files with 6 additions and 1 deletions
|
@ -35,7 +35,12 @@ function addAdvancedMovementItemToSettingsMenu() {
|
|||
}
|
||||
|
||||
function rotate180() {
|
||||
MyAvatar.orientation = Quat.inverse(MyAvatar.orientation);
|
||||
var newOrientation = Quat.multiply(MyAvatar.orientation, Quat.angleAxis(180, {
|
||||
x: 0,
|
||||
y: 1,
|
||||
z: 0
|
||||
}))
|
||||
MyAvatar.orientation = newOrientation
|
||||
}
|
||||
|
||||
var inFlipTurn = false;
|
||||
|
|
Loading…
Reference in a new issue