private static Double getCollisionX ( CollisionCategory category , TileCollision tileCollision , double x , double y ) { if ( Axis . X == category . getAxis ( ) ) { return tileCollision . getCollisionX ( category , x , y ) ; } return null ; }
Get the horizontal collision from current location .