File tree 2 files changed +3
-3
lines changed
src/cubing/bluetooth/smart-puzzle
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class PhysicalState {
108
108
const quat = new Quaternion ( x , y , z , w ) ;
109
109
110
110
if ( ! homeQuatInverse ) {
111
- homeQuatInverse = quat . clone ( ) . inverse ( ) ;
111
+ homeQuatInverse = quat . clone ( ) . invert ( ) ;
112
112
}
113
113
114
114
return quat . clone ( ) . multiply ( homeQuatInverse . clone ( ) ) ;
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export class GoCube extends BluetoothPuzzle {
104
104
}
105
105
106
106
public resetOrientation ( ) : void {
107
- this . homeQuatInverse = this . lastRawQuat . clone ( ) . inverse ( ) ;
107
+ this . homeQuatInverse = this . lastRawQuat . clone ( ) . invert ( ) ;
108
108
this . currentQuat = new Quaternion ( 0 , 0 , 0 , 1 ) ;
109
109
this . lastTarget = new Quaternion ( 0 , 0 , 0 , 1 ) ;
110
110
}
@@ -140,7 +140,7 @@ export class GoCube extends BluetoothPuzzle {
140
140
this . lastRawQuat = quat . clone ( ) ;
141
141
142
142
if ( ! this . homeQuatInverse ) {
143
- this . homeQuatInverse = quat . clone ( ) . inverse ( ) ;
143
+ this . homeQuatInverse = quat . clone ( ) . invert ( ) ;
144
144
}
145
145
146
146
const targetQuat = quat . clone ( ) . multiply ( this . homeQuatInverse . clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments