So recently is started working on a project which currently is a somewhat modified version of the Space Shooter provided by Unity. Because of the security issue in the editor (remote code execution) I upgraded to Unity 2017.2.0b8 64 bit. After doing so and re-importing my assets I constantly get these errors in my console:
- Assertion failed: Assertion failed on expression: ‘CompareApproximately(det, 1.0F, .005f)’
- Assertion failed: Assertion failed on expression: ‘fRoot >= Vector3f::epsilon’
- Assertion failed: Quaternion To Matrix conversion failed because input Quaternion is invalid {-1.#IND00, -1.#IND00, -1.#IND00, -1.#IND00} l=-1.#IND00
It is caused by this peace of code which came with the project:
GetComponent<Rigidbody>().rotation = Quaternion.Euler (0.0f, 0.0f, GetComponent<Rigidbody>().velocity.x * -tilt);
I described my problem further in detail here at Unity Answers Random assertion failure - Questions & Answers - Unity Discussions but did not get any replies. So today thank to help of a second person I found out that the errors don’t occur in version 2017.1.0b9 64 bit. As I described in my Unity Answers post the errors only acure occasionally which makes me even more think that this is a bug in Unity 2017.2.0b8 64 bit. So am I missing something or is this actually a bug inside Unity? Any help is greatly appreciated.