Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Goal is to be able to rotate a model on hololens via voice command or swiping?
Im not familiar with swiping on the hololens. Is that even possible?
what are the steps needed to complete this on hololens?
Thanks Josh
You can achieve this using an application parameter and some simple JavaScript.
First, create a new app parameter ensuring the value is set to 0 and bind it to the desired rotation parameter. I used the Y rotation.
In the home.js file, add the below code:
$scope.Rotate = function(){ $scope.app.params.Rotate += 90; $scope.$applyAsync(); };
Then, on the swipeleft application event, add viewCtrl.Rotate();
Your model should now rotate 90 degrees when using the swipeleft event.