![alt text][1]I need help about attaching a cylinder and a sphere. I'm trying to swing that cylinder by rotating sphere but when I rotate sphere cylinder doesn't get affected.
public GameObject cylinder;
public Transform sphere;
public void yelpaze(Transform newParent)
{
cylinder.transform.SetParent(newParent);
cylinder.transform.SetParent(newParent, false);
cylinder.transform.SetParent(null);
}
***I tried this after an advice but still doesn't work.***
[1]: /storage/temp/169832-ekran-goruntusu-2020-10-25-134043.jpg
↧