Hello,
I have a model, when I try to change rotation of Z axis manually using transform arrow it changes X and Y axis also. I want to do this using JS, could any one tell me how to do this.
Thanks in advance.
Regards,
VR
yes its possible. solution is already given in help centre of vuforia. by simple modification in binding and Javascript its possible to achieve the desired solution. for reference links of help centre are attached below.
1)
2)
Hi @InfinityX
Thanks for your response. My problem is model item is inclined in some angle, so if I change Z axis rotation manuall/JS it transform into abnormal position. PFB image for reference
Is there any way to over come this ?
Thanks in advance.
/VR
can you please elaborate the exact issue you are facing.
why you want to rotate by model item?
what you want to achieve here?
The ModelItem is shaft, I want to show the shaft as running i.e want to rotate shaft in Z axis. So when I change only Z axis rotation using JS it rotates in different/abnormal pattern.
May be the co-ordinate system of that shaft is not matching with global co-ordinate system of assembly. Because we have also faced the same issues while creating experiences.
the solution is you need to shift co-ordinate system of shaft to wherever you want according your requirement in creo parametric. then it will work
Thanks for your response @InfinityX . In this post they used JS to rotate in some angle.
Yes