WERE FLYING IN DA AIR

This commit is contained in:
2025-03-28 14:53:19 +00:00
parent 01e700a00e
commit 6b565e5abc
3 changed files with 47 additions and 0 deletions

View File

@@ -79,6 +79,10 @@ public partial class PlayerMovement : MonoBehaviour
if (Mathf.Abs(v.z) < 0.1f) { v.z = 0.0f; }
m_Body.velocity = v;
// Doubles gravity if falling to feel less floaty
if (v.y < 0.0f) { GravityController.Instance().SetScale(2.0f); }
else { GravityController.Instance().SetScale(1.0f); }
// Clears all stored collisions
m_WallCollisions.Clear();
}