- Home /
A way to rotate object 90 degrees when it becomes child of parent?
In my game I have the player become the child of a cart so when the cart moves forward the player follows, but the cart's forward rotation is to the left of the way it is moving, so do i need to adjust the Cart rotation somehow, rotate the play when the become child, or something else?
Answer by Legend_Bacon · Nov 01, 2018 at 04:08 PM
Hello there,
In this situation I would recommend making an empty, invisible child for your cart. You can call it something like "player position" or "player container", and move/rotate it as much as you need.
If you make your player a child of this object instead of the cart directly, then you can adjust its transform as much as you want regardless of the cart's transform.
Hope that helps!
Cheers,
~LegendBacon
Your answer
![](https://koobas.hobune.stream/wayback/20220612181345im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Make a simple tree 1 Answer
Freeze child from moving up / down 0 Answers
Rotating a parent so a child is facing a point. 0 Answers
Rotating a child and a parent, simultaneously 1 Answer
Rotate parent so child is facing a specific rotation 1 Answer