From d172bb9f6ae2245847f99ea8a38cad721b36a8f9 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Thu, 12 Aug 2021 16:24:59 +1000 Subject: [PATCH] a better symbol --- game/aw.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/aw.go b/game/aw.go index 293226a..00bcc79 100644 --- a/game/aw.go +++ b/game/aw.go @@ -32,7 +32,7 @@ func (aw *Awakeman) Update() error { ε = 0.2 restitution = -0.3 gravity = 0.3 - airResistance = -0.01 // ∴ terminal velocity = 30 + airResistance = -0.01 // ⇒ terminal velocity = 30 jumpVelocity = -4 runVelocity = 1.4 coyoteTime = 5 @@ -56,7 +56,7 @@ func (aw *Awakeman) Update() error { aw.vy = 0 aw.coyoteTimer = coyoteTime } else { - // Falling. v = v_0 + a, and a = gravity + airResistance(v) + // Falling. v = v_0 + a, and a = gravity + airResistance(v_0) aw.vy += gravity + airResistance*aw.vy if aw.coyoteTimer > 0 { aw.coyoteTimer--