#StackBounty: #unity #rotation #virtual-reality #htc-vive #eye UNITY / Vive (oculus): How to Change position + rotation of a parent Gam…

Bounty: 100

Sooo this question is a problem , a evolution by another solution of this problem here:

How can I change the parents rotation so the childs rotation is looking at a specific direction


We have a “Eye” (HTC Vive).
We have a “Parent” which is the Parent of “Eye”.

We can not change the position or rotation of the Eye in code.
We can only change the position and rotation of the Parent.

1.We want to modify the Parent Position so that Eye to goes to a certain “Target 1” position.

2.We want to modify the Parent Y-Rotation so that the Eye looks at a certain “Target 2” position.

3.While doing this we dont want to modify the Parent X or Z , because this would lead to a Rotated game experience.

The Parent Position changes so the Eye gets to “Target 1” position.
The Parent Position changes so Y- Rotation should look at Target 2 position
The Parent X/Z Rotation should not modify the Eye X/Z

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.