View difference between Paste ID: Zf8WGy1r and Y8j7muHD
SHOW: | | - or go back to the newest paste.
1-
function IsGrounded(): boolean {
1+
	bool isGrounded () {
2-
  return Physics.Raycast(transform.position, -Vector3.up, distToGround + 0.1);
2+
		return Physics2D.Raycast(transform.position, -Vector2.up, 0.51f)
3-
}
3+
	}