- Home /
Local Euler Angles problems.
I have a bit complex script and my problem is this error.I am stuck to this for a while and unable to find a solution.Your help will be highly appreciated :)
transform.localEulerAngles assign attempt for 'Steer' is not valid. Input localEulerAngles is { 336.000000, NaN, 0.000014 }. UnityEngine.Transform:set_localEulerAngles(Vector3) MotorControl:FixedUpdate() (at Assets/VMotor/Scripts/MotorControl.cs:584)
NaN, you could have a divide by zero situation going on.
Diagnosis will be limited to guess work unless you also post the relevant code (not entire script) - just the parts related to creating the Vector3.
Well, it tells you :P
After attempting line 584 of $$anonymous$$otorControl.cs a NaN was encountered when attempting to set Y of a Vector3. NaN is usually caused by a Divide by Zero.
I read the original comment, but however probable, it is still at best an educated guess ;)
Your answer
Follow this Question
Related Questions
What is the problem with my script and how to fix it?? 1 Answer
Scripting BUG: target becomes bigger when getting nearer 1 Answer
Cloud recognition in Vuforia 0 Answers
How to Make Application in Unity for Android 0 Answers
Shader on MacOs and Window - D3D shader assembly failed with: (15): error X5204: 0 Answers