Comments and answers for "(Magnitude of vector)*x SHOULD EQUAL magnitude of (vector*x)"
http://answers.unity.com/questions/682426/magnitude-of-vectorx-should-equal-magnitude-of-vec.html
The latest comments and answers for the question "(Magnitude of vector)*x SHOULD EQUAL magnitude of (vector*x)"Answer by Kiloblargh
http://answers.unity.com/answers/682471/view.html
You can't ever count on any float to == any other float, that's just how it is when you are working with float values. You should check to see if the absolute value of one minus the other is less than .0001, if so, consider them equal.
Or you can use this:
Mathf.Approximately (velocity.magnitude,rayHit.distance)Tue, 08 Apr 2014 00:22:02 GMTKiloblargh