“Rotations -Einheitskript 2d” Code-Antworten

Rotations -Einheitskript 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

Rotations -Einheitskript 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

Ähnliche Antworten wie “Rotations -Einheitskript 2d”

Fragen ähnlich wie “Rotations -Einheitskript 2d”

Weitere verwandte Antworten zu “Rotations -Einheitskript 2d” auf C#

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen