UnityPlatformer.RaycastController.LeftFeetRay C# (CSharp) Method

LeftFeetRay() public method

Return RaycastHit2D of Raycasting at bottom left.
public LeftFeetRay ( float rayLength, Vector3 velocity ) : RaycastHit2D
rayLength float
velocity Vector3
return UnityEngine.RaycastHit2D
    public RaycastHit2D LeftFeetRay(float rayLength, Vector3 velocity) {
      if (velocity.y < 0) {
        rayLength -= velocity.y;
      }

      Vector3 origin = raycastOrigins.bottomLeft;
      origin.x += velocity.x;

      return Raycast(origin, Vector2.down, rayLength, collisionMask, Color.yellow);
    }
    /// <summary>