- Edited
- Best Answerset by Tomcat
Tomcat Vector3 components are 32 bit floats while naked float variables are 64 bit floats. So when you assign/cast from a naked float to a vector component, some truncating and rounding will occur. Depending on the exact bit representation of a particular value, you may end up with a slightly smaller or larger value. In your case it's a larger value which breaks the logic of your code when you test for the limits in the next frame.