Moving Objects in Unity: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
TomasM (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „'''Unity : How to move an object in 3D space?''' There are different ways to move an object within 3D space. '''A) transform.position''' '''transform:''' P…“) |
TomasM (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 10: | Zeile 10: | ||
''' | ''' | ||
'''Vector: | '''Vector:''' A class to describe a two or three dimensional vector, a vector is an entity that has both magnitude and direction.''' '''A Vector3(float x, float y, float z) is a Unity C# struct representing points and vectors in 3D space. | ||
''' | ''' |
Version vom 23. Oktober 2019, 13:30 Uhr
Unity : How to move an object in 3D space?
There are different ways to move an object within 3D space.
A) transform.position
transform: Position, rotation and scale of an object.
transform.position: The position property of a GameObject's Transform. Gives the object a new position.
Vector: A class to describe a two or three dimensional vector, a vector is an entity that has both magnitude and direction. A Vector3(float x, float y, float z) is a Unity C# struct representing points and vectors in 3D space.