Skip to main content
12-Amethyst
November 17, 2021
Solved

Model rotation

  • November 17, 2021
  • 3 replies
  • 5717 views

Hi,

 

How to rotate a model along the Z axis like in CAD applications? Model created is having axis of rotation outside the model. I am using slider to rotate the model. 

 

--

Dhinesh

Best answer by Suraj_Patil

i got this issue.

what u can do is u can change the axis of model in creo or in any CAD modelling software and shift the axis to centre of model and import in vuforia studio.

By doing above changes in modelling software it will suffice your requirement.

3 replies

24-Ruby III
November 17, 2021

1A similar question was recently - "Is it possible to rotate a 3d object with your finger?": https://community.ptc.com/t5/Vuforia-Studio/Is-it-possible-to-rotate-a-3d-object-with-your-finger/m-p/757157#M10321 

2. Another one - "Rotating the 3d model": https://developer.vuforia.com/forum/ios/rotating-3d-model 

MSD212-AmethystAuthor
12-Amethyst
November 23, 2021

Hi Vladimir,

 

I did check these links before starting this thread. They are not addressing my issue. 

12-Amethyst
November 22, 2021

Hi @MSD2 ,

 

The behaviour shown in the video is strange, as in my quick test, my model rotates from the center. 

Would it be possible to share with us the model? I currently don't have a clue, what the issue might be. 

 

Thank you for your understanding.

Mcotora

MSD212-AmethystAuthor
12-Amethyst
November 23, 2021
16-Pearl
November 24, 2021

i got this issue.

what u can do is u can change the axis of model in creo or in any CAD modelling software and shift the axis to centre of model and import in vuforia studio.

By doing above changes in modelling software it will suffice your requirement.

21-Topaz I
November 29, 2021

Hello @MSD2 ,

the problem is based on the model root coordinate system.  IN your case the root assembly coordinate system is not defined on the location where you want to rotate. So to solve this problem you have the following options:

  • As already mentioned by  @Suraj_Patil  you can change the Root coordinate system. For example you can create in source CAD system  a new assembly and insert your model into it and place on the desired location – so that it will match the correct rotation axis.
  • User Euler calculate to transform the axis. In this case you will have a set of values  x,y,z, rx ,ry,  rz – combination of space shift and rotation which will result the desired rotation. If this option is interesting of you then, please , let me know I will check if I have some sample code for this calculus