::Not sure what is going on but as I move along the x axis and y axis the raycast line seems to rotate around the character, eventually shooting the raycast up instead of down. Images and code are below.
View post on imgur.com
Code:
public bool Grounded(){
if(Physics2D.Raycast(groundCheckPoint.position, -Vector2.up, groundCheckY, whatIsGround)
|| Physics2D.Raycast(groundCheckPoint.position + new Vector3(groundCheckX, 0 , 0), -Vector2.up, groundCheckY, whatIsGround)
|| Physics2D.Raycast(groundCheckPoint.position + new Vector3(-groundCheckX, 0 , 0), -Vector2.up, groundCheckY, whatIsGround)){
return true;
//doubleJump = true;
}
else{
return false;
}
}