- Home /
rotate 2d object without affecting the rigidbody ?
i have an angry birds type of game , when the object is in a certain position ready to be shot it rotates normally (iskinematic = true), but when i shoot it it stops spinning (iskinematic = false) , i tried few codes that made it rotate continuously but it makes it fall downwards , so any idea pls ?
Answer by unity_ek98vnTRplGj8Q · Feb 21, 2020 at 03:51 PM
I recommend making the rotating object a child of a gameobject that contains the rigidbody component. That way you can rotate the object visually without affecting the collider or rigidbody
your comment helped a lot , however i had to some improvising and managed to make the two object exist together and make them visually appealing , i made the parent object transparent when its in the air , and when collision happens the child object (the rotating object) disappears and the parent object shows , and its working like charm , thank you
Your answer
![](https://koobas.hobune.stream/wayback/20220612223739im_/https://answers.unity.com/themes/thub/images/avi.jpg)