Unity coding script | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Unity coding script

For game object movement

16th Nov 2020, 3:37 PM
Jyoti
Jyoti - avatar
1 Answer
0
Hello! Cool that you're learning Unity. I'm trying to learn it too. I'm not sure about it because I'm not so good at it yet but I think you can simply write in the code "transform.translate(x, y, z);" only to change the position by the given values. There are different methods for moving objects too like ridgidbodies and character controllers. I'm not so good at unity yet. This is all I can say. I hope I could help! Good luck! 🍀
18th Nov 2020, 2:34 PM
Alpha-Craft
Alpha-Craft - avatar