Moving Objects in Unity

Aus hyperdramatik
Zur Navigation springen Zur Suche springen

Unity : How to move a GameObject in 3D space?

There are different ways to move an object within 3D space with code. Here we go over 5 options:

A) transform.position

B) transform.Translate

C) RigidBody.AddForce

D) RigidBody.MovePosition

E) RigidBody.Velocity