Is there a faster or easyer way to do this?

currentGravDirection = -hit.normal;

```
if(Mathf.Abs(currentGravDirection.x) <= 0.2)
{
currentGravDirection.x = 0;
}
if(Mathf.Abs(currentGravDirection.y) <= 0.2)
{
currentGravDirection.y = 0;
}
if(Mathf.Abs(currentGravDirection.z) <= 0.2)
{
currentGravDirection.z = 0;
}
```