cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i rotate model item continuously is there any Java coding pls provide details

Highlighted
Participant

How can i rotate model item continuously is there any Java coding pls provide details

Hello Sir,

Please can anyone tell me how to rotate a model item using js pls provide any coding

1 REPLY 1
Highlighted

Re: How can i rotate model item continuously is there any Java coding pls provide details

Hello,

try this code will rotare the model 15 deg

$scope.view.wdg['model-1']['ry'] += 15;


You can create a function that can be called from a JS box. Call it with "rotateRight();" :

$scope.rotateRight = function() {

                                                      $scope.view.wdg['model-1']['ry'] += 15;

                           };

Or you may use interval to rotate it smothly (1 deg / second):

$interval(function() {

  $scope.view.wdg['model-1']['ry'] += 1;

}

          ,1000);

Good luck

Per

Announcements
Join an
AR Working Group!

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection