mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
walk anim speed adjusted
This commit is contained in:
@@ -709,7 +709,7 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L
|
||||
if (this is HasAssembledSprite) {
|
||||
try {
|
||||
val baseDelay = animDesc!!.getAnimByFrameName("ANIM_RUN").delay
|
||||
val moveSpeedMult = (controllerV?.x ?: 0.0).abs().coerceAtLeast(PHYS_EPSILON_VELO).toFloat() / 4f // FIXME empirical value
|
||||
val moveSpeedMult = (controllerV?.x ?: 0.0).abs().coerceAtLeast(PHYS_EPSILON_VELO).toFloat() / 1.414f // FIXME empirical value
|
||||
val stride = scale.toFloat()
|
||||
val maxMoveSpeed = scale.sqrt().toFloat() // ActorWithBody uses scale.sqrt() for determining walk acceleration
|
||||
val scaleCompensation = stride / maxMoveSpeed
|
||||
|
||||
Reference in New Issue
Block a user