mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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() {
|
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;
|
var inFlipTurn = false;
|
||||||
|
|
Loading…
Reference in a new issue