unity3d quaternion add 90 degrees
//This way you can add a specific of degree (in this case 90 on y)
//to a specific axis
rotation *= Quaternion.Euler(0, 90, 0);
unity3d quaternion add 90 degrees
//This way you can add a specific of degree (in this case 90 on y)
//to a specific axis
rotation *= Quaternion.Euler(0, 90, 0);
add rotation unity c#
Vector3 newRotation = new Vector3(0, 10, 0);
transform.eulerAngles = newRotation;
transform.rotation - 90 unity
var lookPos = target.position - transform.position; lookPos.y = 0; var rotation = Quaternion.LookRotation(lookPos); rotation *= Quaternion.Euler(0, 90, 0); // this adds a 90 degrees Y rotation var adjustRotation = transform.rotation.y + rotationAdjust; //<- this is wrong! transform.rotation = Quaternion.Slerp(transform.rotation, rotation, Time.deltaTime * damping);
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