google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 403 forks source link

Changing rotation parameters of a gameobject makes it rotate with camera in AugmentedFaces #736

Closed yellowflash07 closed 4 years ago

yellowflash07 commented 4 years ago

SPECIFIC ISSUE ENCOUNTERED

I am trying to place necklace for which I need to manually control the rotation in update else the gameobject will rotate with face but doing that makes the gameobject rotate with camera as if the gameobject were an child of the camera. Any kindof change to the rotation brings this problem. I tried clamping,lookat and assigning quaternion.identity. None of them work.

VERSIONS USED

STEPS TO REPRODUCE THE ISSUE

1.Just try manipulating any gameobject's rotation manually

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS

yellowflash07 commented 4 years ago

I feel extremely dumb right now. The gameobjects were not rotating. They were true to their world rotations. The face was rotating and since the i am not taking the face rotation each frame into calculation the face rotated and the gameobjects did not.