Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

How to make an object follow another object on a keypress?

$
0
0
Hi everyone! Im sorta new to coding outside of visual scripting methods, but I was wanting to make a short little test game in unity where I moved a block over on top of another block and hit the spacebar, and one would parent to the other so I could move it around, and then hit the space bar and drop it again. It shouldn't be too complicated (I actually found a question before where someone asked this, but the code had bugs) but I can't figure it out.I extremely appreciate your help! Oh, just for specification, I can get the controllable cube moving all over, I just can't parent. thx!

Viewing all articles
Browse latest Browse all 302

Trending Articles



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