rev, v0.3

This commit is contained in:
2026-02-03 02:35:27 +05:30
parent aedb4f0e96
commit 803e186bcc
16 changed files with 647 additions and 17 deletions
+14
View File
@@ -41,6 +41,20 @@ public class Ball : MonoBehaviour
float velocityMult = 1- Mathf.Clamp01(rb.linearVelocity.magnitude / maxWallStuckVelocity);
Debug.Log($"{collision.collider.name} hit ball @ {otherSpeed}, ball speed: {rb.linearVelocity.magnitude}");
int mult=0;
if(touchingB){
mult++;
}
if(touchingT){
mult++;
}
if(touchingL){
mult++;
}
if(touchingR){
mult++;
}
velocityMult *= mult;
if (touchingR) {
rb.AddForce(Vector2.left * otherSpeed *wallStuckFixForce * velocityMult * Time.deltaTime);
}