J's Study log

[Unity] Transform & Inspector 본문

Computer Language/Unity

[Unity] Transform & Inspector

정우섭 2019. 2. 19. 07:10

You can transform the object by Inspector. You can find transform category in Inspector when you click the object you want to transform. You can transform the object finely, inputting real number or clicking each axle.


Quaternion.rotation - Means that how mush will you rotate object. And if you write Quaternion.identity the object don't rotate.


Applying transform by Vector3 function like picture.



You can make object move by Vector3.MoveTowards(transform.position [Where from(current location in this case)], target [Where to], 0.1f [how fast]). And make object rotate by transform.Rotate(new Vector3(x, y, z)).

'Computer Language > Unity' 카테고리의 다른 글

[Unity] Physics Material  (0) 2019.02.21
[Unity] Component  (0) 2019.02.19
[Unity] Camera & Light  (0) 2019.02.19
[Unity] GameObject  (0) 2019.02.19
[Unity] View  (0) 2019.02.19
Comments