“Rotasi Unity Script 2D” Kode Jawaban

Rotasi Unity Script 2D

transform.Rotate(Vector3(0, 0, 50));
//instead of :
transform.eulerAngles = new Vector3 (0, 0, 50);
//or like you said
transform.eulerAngles = Vector3.forward * 50;
Xerothermic Xenomorph

Rotasi Unity Script 2D

transform.eulerAngles = Vector3.forward * degrees;
// or
transform.rotation = Quaternion.Euler(Vector3.forward * degrees);
// or
transform.rotation = Quaternion.LookRotation(Vector3.forward, yAxisDirection);
// or
transform.LookAt(Vector3.forward, yAxisDirection);
// or
transform.right = xAxisDirection;
// or
transform.up = yAxisDirection;
Xerothermic Xenomorph

Jawaban yang mirip dengan “Rotasi Unity Script 2D”

Pertanyaan yang mirip dengan “Rotasi Unity Script 2D”

Lebih banyak jawaban terkait untuk “Rotasi Unity Script 2D” di C#

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya