Fixed the issue when slope limit was set to 90 degrees flax crashed.

I fixed the issue when slope limit was set to 90 degrees flax would commit suicide (crash) (: . I just changed the clamp limit from 90 to 89 degrees.
This commit is contained in:
TalkingWallnut
2021-01-23 15:56:18 +01:00
committed by GitHub
parent 049450e31b
commit 9674f276d3

View File

@@ -55,7 +55,7 @@ void CharacterController::SetHeight(const float value)
void CharacterController::SetSlopeLimit(float value)
{
value = Math::Clamp(value, 0.0f, 90.0f);
value = Math::Clamp(value, 0.0f, 89.0f);
if (Math::NearEqual(value, _slopeLimit))
return;