From 8a0a264a1938f05e794380e5fffb1db62f6ec8eb Mon Sep 17 00:00:00 2001 From: Minjae Song Date: Mon, 31 Dec 2018 21:34:50 +0900 Subject: [PATCH] slow descend of the platform fixed --- src/net/torvald/terrarum/gameactors/ActorWBMovable.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/net/torvald/terrarum/gameactors/ActorWBMovable.kt b/src/net/torvald/terrarum/gameactors/ActorWBMovable.kt index 2ec58f0bd..5d6b5b62e 100644 --- a/src/net/torvald/terrarum/gameactors/ActorWBMovable.kt +++ b/src/net/torvald/terrarum/gameactors/ActorWBMovable.kt @@ -1147,17 +1147,22 @@ open class ActorWBMovable(renderOrder: RenderOrder, val immobileBody: Boolean = ).toDouble() + // body friction is always as same as the air. Fluid doesn't matter, they use viscosity + // (or viscosity was the wrong way and the friction DO matter? hmm... -- Torvald, 2018-12-31) + // going down the platform won't show abnormal slowing (it's because of the friction prop!) internal inline val bodyFriction: Double get() { - var friction = 0.0 + /*var friction = 0.0 forEachOccupyingTileNum { // get max friction if (getTileFriction(it ?: Block.AIR) > friction) friction = getTileFriction(it ?: Block.AIR) } - return friction + return friction*/ + return getTileFriction(Block.AIR) } + // after all, feet friction is what it matters internal inline val feetFriction: Double get() { var friction = 0.0