Answers for "how to make a gameobject move in unitya class"

C#
2

how to move a gameobject

public static int movespeed = 3;
   public Vector3 userDirection = Vector3.down; //You can change this to any direction
   
   void Update()
    {
        transform.Translate(userDirection * movespeed * Time.deltaTime);
    }
Posted by: Guest on February-23-2021

Code answers related to "how to make a gameobject move in unitya class"

C# Answers by Framework

Browse Popular Code Answers by Language