Stop horizontal velocity whe dropping down

This commit is contained in:
go38coz
2026-06-06 15:37:54 +02:00
parent 899d7d7f01
commit 4c5230027e
3 changed files with 29 additions and 3 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ using Object = System.Object;
public class DamageHandler : MonoBehaviour
{
public float threshold = 0.05f;
public float multiplier = 5f;
public float threshold = 2.5f;
public float multiplier = 0.5f;
public float maxHealth = 1f;
public float health;
+1
View File
@@ -214,6 +214,7 @@ public class DropletMovement : MonoBehaviour
{
Collider2D playerCollider = GetComponent<Collider2D>();
rb = GetComponent<Rigidbody2D>();
rb.linearVelocityX = 0;
playerCollider.isTrigger = true;