Quantcast
Channel: Questions in topic: "attach"
Viewing all articles
Browse latest Browse all 168

Attaching 2 object

$
0
0
![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

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>