Rename direction to direction4axis and add direction8axis for more precision.