|
Post by raildoc on Feb 16, 2020 6:37:38 GMT
I've built some houses and noticed strange thing: when I try to go out from one of them camera gets stuck in doorway (it happend only to 1 of 3 houses and only when I go out from it) As you can see in Log: some vectors becomes NaN and Look rotation in zero
[Solution] in vThirdPersonCamera.cs I found line "t /= (currentState.cullingHeight - currentState.height);" , so nobody checks for division by 0, I changed it to "if ((currentState.cullingHeight - currentState.height) != 0f) t /= (currentState.cullingHeight - currentState.height); else t = 1;"
|
|