Unity Editor Error :
Invalid AABB a
Invalid AABB aabb
Invalid AABB rkBox
The above errors caused by Nan
value exists in transform properties like: position, rotation or scale. This may come from division by ZERO, invalid physics set up. For division by ZERO, you may need to write some safe code, division with some very small value instead of ZERO. With some code as value / max(0.0001f, [Some value may be Nan])
, this will push you back from Nan result.
About Nan
, one thing need to take care is: If there is only one Nan
exist in the + – * /, the result MUST be Nan.
Another place that could produce Nan value, may be RigBody/WheelCollider velocity or force properties. Most of the case happen in Physics module.
A Nan value can be detected with function float.isNan()
. With this tiny function, you can identify where is the first time of Nan
value come out and figure out why.
So check your code and make sure everything works as you expect. Not so easy to find the where real problem it is. I wish you good luck!!!