A faster way to adjust my vector

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;
}

Not really, but you can single-line it and make it unreadable! :smiley:

cgd = currentGravDirection;
cgd = new Vector3( Mathf.Abs(cgd.x)<0.2?0:cgd.x,Mathf.Abs(cgd.y)<0.2?0:cgd.y,Mathf.Abs(cgd.z)<0.2?0:cgd.z );