mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-03 17:39:03 +00:00
WERE FLYING IN DA AIR
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user