a better symbol
This commit is contained in:
parent
ad86535ca1
commit
d172bb9f6a
1 changed files with 2 additions and 2 deletions
|
@ -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--
|
||||
|
|
Loading…
Reference in a new issue