Hi, so I went to make a 2D platformer and I'm here with an issue. In the video you can see that when I move near a wall and then jump, my player jump but much lower than the usual (I press the jump button as long as I can in both cases), can you help me?
You can see my player with all the pictures and my script below this:
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
[RequireComponent(typeof(Rigidbody2D))]
[RequireComponent(typeof(CapsuleCollider2D))]
public class AnimationsAndMovementController : MonoBehaviour
{
[Header("------------------------------Movement Settings------------------------------")]
[SerializeField] private float moveSpeed = 5f;
[Header("------------------------------Jump Settings----------------------------------")]
[SerializeField] private float _jumpForce;
[SerializeField] private float _jumpTime;
[SerializeField] private float _jumpMultiplier;
//[SerializeField] private bool _canMoveVerticaly = false;
[Header("------------------------------Gravity Settings-------------------------------")]
[Tooltip("Transform positionn� aux pieds du personnage (child empty object).")]
[SerializeField] private float _fallMultiplier;
[SerializeField] private Transform _groundCheck;
[SerializeField] private Transform _wallCheck;
[SerializeField] private Vector2 _groundCheckRadius;
[SerializeField] private Vector2 _wallCheckRadius;
[SerializeField] private LayerMask _groundLayer;
[SerializeField] private PhysicsMaterial2D _zeroFrictionMat;
[SerializeField] private PhysicsMaterial2D _defaultMat;
[Header("------------------------------Components-------------------------------------")]
[SerializeField] private Animator _animator;
private PlayerInput _playerInput;
private Rigidbody2D _rb;
private Vector2 _currentMovementInput;
private Vector2 _checkGroundOverlapBoxPos;```
The rest of the script is above