[Unity] Basic Movements

In most cases, you first need to get either transform variable or rigidbody variable of an object. Transform.position*”transform” is a variable that refers to the transform of the object the script is attached to. No need to declare.ex) transform.position += new Vector3(1, 1, 1) * Time.deltaTime; Transform.translateex) transform.translate(new Vector3(1, 1, 1) * Time.deltaTime); Rigidbody.velocityex) public […]

[Unity] Basic Movements Read More »