@@ -138,7 +138,7 @@ ROS3D.InteractiveMarkerControl = function(options) {
138138 var posInv = this . parent . position . clone ( ) . multiplyScalar ( - 1 ) ;
139139 switch ( message . orientation_mode ) {
140140 case ROS3D . INTERACTIVE_MARKER_INHERIT :
141- rotInv = this . parent . quaternion . clone ( ) . inverse ( ) ;
141+ rotInv = this . parent . quaternion . clone ( ) . invert ( ) ;
142142 break ;
143143 case ROS3D . INTERACTIVE_MARKER_FIXED :
144144 break ;
@@ -231,7 +231,7 @@ ROS3D.InteractiveMarkerControl.prototype.updateMatrixWorld = function (force) {
231231 that . currentControlOri . normalize ( ) ;
232232 break ;
233233 case ROS3D . INTERACTIVE_MARKER_FIXED :
234- that . quaternion . copy ( that . parent . quaternion . clone ( ) . inverse ( ) ) ;
234+ that . quaternion . copy ( that . parent . quaternion . clone ( ) . invert ( ) ) ;
235235 that . updateMatrix ( ) ;
236236 that . matrixWorldNeedsUpdate = true ;
237237 ROS3D . InteractiveMarkerControl . prototype . updateMatrixWorld . call ( that , force ) ;
@@ -247,7 +247,7 @@ ROS3D.InteractiveMarkerControl.prototype.updateMatrixWorld = function (force) {
247247 ros2Gl . makeRotationFromEuler ( rv ) ;
248248
249249 var worldToLocal = new THREE . Matrix4 ( ) ;
250- worldToLocal . getInverse ( that . parent . matrixWorld ) ;
250+ worldToLocal . copy ( that . parent . matrixWorld ) . invert ( ) ;
251251
252252 cameraRot . multiplyMatrices ( cameraRot , ros2Gl ) ;
253253 cameraRot . multiplyMatrices ( worldToLocal , cameraRot ) ;
0 commit comments