@@ -138,7 +138,7 @@ ROS3D.InteractiveMarkerControl = function(options) {
138
138
var posInv = this . parent . position . clone ( ) . multiplyScalar ( - 1 ) ;
139
139
switch ( message . orientation_mode ) {
140
140
case ROS3D . INTERACTIVE_MARKER_INHERIT :
141
- rotInv = this . parent . quaternion . clone ( ) . inverse ( ) ;
141
+ rotInv = this . parent . quaternion . clone ( ) . invert ( ) ;
142
142
break ;
143
143
case ROS3D . INTERACTIVE_MARKER_FIXED :
144
144
break ;
@@ -231,7 +231,7 @@ ROS3D.InteractiveMarkerControl.prototype.updateMatrixWorld = function (force) {
231
231
that . currentControlOri . normalize ( ) ;
232
232
break ;
233
233
case ROS3D . INTERACTIVE_MARKER_FIXED :
234
- that . quaternion . copy ( that . parent . quaternion . clone ( ) . inverse ( ) ) ;
234
+ that . quaternion . copy ( that . parent . quaternion . clone ( ) . invert ( ) ) ;
235
235
that . updateMatrix ( ) ;
236
236
that . matrixWorldNeedsUpdate = true ;
237
237
ROS3D . InteractiveMarkerControl . prototype . updateMatrixWorld . call ( that , force ) ;
@@ -247,7 +247,7 @@ ROS3D.InteractiveMarkerControl.prototype.updateMatrixWorld = function (force) {
247
247
ros2Gl . makeRotationFromEuler ( rv ) ;
248
248
249
249
var worldToLocal = new THREE . Matrix4 ( ) ;
250
- worldToLocal . getInverse ( that . parent . matrixWorld ) ;
250
+ worldToLocal . copy ( that . parent . matrixWorld ) . invert ( ) ;
251
251
252
252
cameraRot . multiplyMatrices ( cameraRot , ros2Gl ) ;
253
253
cameraRot . multiplyMatrices ( worldToLocal , cameraRot ) ;
0 commit comments