Jump has been reworked again but it works now

Glide has been fixed again
Wallrun has been fixed again
player can now short hop
This commit is contained in:
Melbyj1125
2021-12-10 06:52:59 -06:00
parent bd36986887
commit c44afd50a8
8 changed files with 336 additions and 213 deletions

View File

@@ -6,14 +6,14 @@ using UnityEngine.Assertions;
public class PlayerStats : MonoBehaviour
{
//Maximum possible player speed
[SerializeField] private float maxVel = 25.0f;
[SerializeField] private float maxVel = 30.0f;
public float MaxVel{
get{ return maxVel; }
set{ maxVel = value; }
}
//Minimum possible player speed
[SerializeField] private float minVel = 2.0f;
[SerializeField] private float minVel = 5.0f;
public float MinVel{
get{ return minVel; }
set{ minVel = value; }
@@ -34,7 +34,7 @@ public class PlayerStats : MonoBehaviour
}
//Player Jump power
[SerializeField] private float jumpPow = 25.0f;
[SerializeField] private float jumpPow = 63.0f;
public float JumpPow{
get{ return jumpPow; }
set{ jumpPow = value; }
@@ -69,7 +69,7 @@ public class PlayerStats : MonoBehaviour
}
//Gravity Affecting the player
[SerializeField] private float playerGrav = 50.0f;
[SerializeField] private float playerGrav = 200.0f;
public float PlayerGrav{
get{ return playerGrav; }
set{ playerGrav = value; }