Question by
hitesh007yt · Nov 03, 2021 at 12:48 PM ·
cameracamera follow
how to make child game Object stop rotating for selected direction when parent is rotating
I have a racing game with some props that can push the car upward and rotate it in the Y direction. i also have the child camera that is responsible for following the car. here is the problem because the car is the parent of the camera. whenever the car rotates upward which is the Y direction the camera goes down underground for some time and I don't want that. I want my camera to do these. 1. follow the car 2. always stay behind the car 3. rotate when the car rotates 4. do not rotate when the car rotates upward which is the Y direction --if anyone has any solution please share it with me.
Comment
Your answer

Follow this Question
Related Questions
Camera EdgeScrolling Question 0 Answers
Missing reference exception 0 Answers
Help with setting up 2D auto scrolling camera using Cinemachine 1 Answer