mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +09:00
slow descend of the platform fixed
This commit is contained in:
@@ -1147,17 +1147,22 @@ open class ActorWBMovable(renderOrder: RenderOrder, val immobileBody: Boolean =
|
|||||||
).toDouble()
|
).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
|
internal inline val bodyFriction: Double
|
||||||
get() {
|
get() {
|
||||||
var friction = 0.0
|
/*var friction = 0.0
|
||||||
forEachOccupyingTileNum {
|
forEachOccupyingTileNum {
|
||||||
// get max friction
|
// get max friction
|
||||||
if (getTileFriction(it ?: Block.AIR) > friction)
|
if (getTileFriction(it ?: Block.AIR) > friction)
|
||||||
friction = getTileFriction(it ?: Block.AIR)
|
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
|
internal inline val feetFriction: Double
|
||||||
get() {
|
get() {
|
||||||
var friction = 0.0
|
var friction = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user