unity rotate vector
Vector3 rotated = Quaternion.AngleAxis(-45, Vector3.up) * vector;
unity rotate vector
Vector3 rotated = Quaternion.AngleAxis(-45, Vector3.up) * vector;
2 rotation unity
// Rotation scripting with Euler angles correctly.
// Store the Euler angle in a class variable, and only use it to
// apply it as a Euler angle, but never rely on reading the Euler back.
float x;
void Update ()
{
x += Time.deltaTime * 10;
transform.rotation = Quaternion.Euler(x,0,0);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us