- Home /
please help Input rotation is { NaN, NaN, NaN, NaN }.
upperArmAxisCorrection.transform.LookAt(target,elbowTarget.position - upperArmAxisCorrection.transform.position);
upperArmAxisCorrection.transform.localRotation=Quaternion.Euler(upperArmAxisCorrection.transform.localRotation.eulerAngles - new Vector3(ikAngle, 0, 0));
forearmAxisCorrection.transform.LookAt(target,elbowTarget.position - upperArmAxisCorrection.transform.position);
handAxisCorrection.transform.rotation = target.rotation;
i keep getting this
CompareApproximately (SqrMagnitude (q), 1.0F) UnityEngine.Quaternion:Euler(Vector3)
transform.localRotation assign attempt for 'upperArmAxisCorrection' is not valid. Input rotation is { NaN, NaN, NaN, NaN }. UnityEngine.Transform:set_localRotation(Quaternion)
What exactly are you trying to do with the upperArmAxisCorrection? It looks like you are trying to assign Quaternion to a localRotation, so what is the reason for that?
I'm trying to replicate this and I cannot find anything wrong. Though I do know that I did once encounter something weird where I am unable to assign negative angles.
getting same error
Quaternion To $$anonymous$$atrix conversion failed because input Quaternion is invalid {nan, nan, nan, nan} l=nan UnityEngine.GUIUtility:RotateAroundPivot(Single, Vector2) LineDrawer:DrawLine(Vector2, Vector2, Int32, Texture2D) (at Assets/Scripts/LineDrawer.cs:79) LineDrawer:OnGUI() (at Assets/Scripts/LineDrawer.cs:64)