Skip to main content
Jun 7, 2017 9:34 AM UTC
Solved

"Manually" rotate a model in ThingWorx View with HoloLens?

Hi all,


What is the procedure to manipulate or rotate a model that is viewed in the HoloLens TWX View? Is the rotation a sequence step or is there a method of getting a gesture to trigger a model rotation?


Thanks,


Brian

flamyAnswer
Jun 7, 2017 1:24 PM UTC

I have used a simple approach to rotate the model .  :

Create Application parameter  RotationY , bind  it with the Y Rotation in the  model

Add JS to for example Swipeleft  event :   app.params["RotationY"]= app.params["RotationY"] - 90  to rotate the model 90 Deg on Swipeleft

2 replies

flamyAnswer
Jun 7, 2017 1:24 PM UTC

I have used a simple approach to rotate the model .  :

Create Application parameter  RotationY , bind  it with the Y Rotation in the  model

Add JS to for example Swipeleft  event :   app.params["RotationY"]= app.params["RotationY"] - 90  to rotate the model 90 Deg on Swipeleft

bwhelanAuthor
Jun 7, 2017 1:27 PM UTC

Thank you very much for the help Francois! I'll give this a go..

Regards,

Brian