From 7c083e44232450a5f1914566b041a055e5c060c0 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Mon, 10 Apr 2023 23:31:43 +0200 Subject: [PATCH] projectile more realistic fall curve --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 210137a..b854871 100644 --- a/index.html +++ b/index.html @@ -3068,7 +3068,7 @@ function shoot(){ shot = setInterval( _ => { d+=.1; r.at(d, t); - t.y-=.1*(1+d) // simulating gravity and friction + t.y-=.1*(1+d*d) // simulating gravity and friction s.setAttribute("position", AFRAME.utils.coordinates.stringify( t )); if (d>100 || t.y < 0) clearInterval(shot) }, 10)