Skip to main content
19-Tanzanite
December 24, 2019
Question

How change rotation using JS

  • December 24, 2019
  • 2 replies
  • 2739 views

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

2 replies

1-Visitor
December 26, 2019

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)

http://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FIntermediateJSMoveModels.html%23

2)

http://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FBeginner_JSInvokeFunction.html%23

 

 

 

Velkumar19-TanzaniteAuthor
19-Tanzanite
December 27, 2019

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

 

Img1.PNGImg2.PNG

 

Is there any way to over come this ?

 

Thanks in advance.

 

/VR

1-Visitor
December 27, 2019

can you please elaborate the exact issue you are facing. 

why you want to rotate by model item?

what you want to achieve here?

Velkumar19-TanzaniteAuthor
19-Tanzanite
January 2, 2020

Hello @RolandRaytchev ,

 

I saw your community post.

 

Could you help me with this ?

 

/VR