Skip to content

Commit 9b4d625

Browse files
lanmowerclaude
andcommitted
fix: always play JumpLand animation on landing regardless of speed
Removed smoothSpeed < 1.5 gate — landing animation was not playing when player landed while moving faster than 1.5 m/s (e.g. after running jump). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a26558e commit 9b4d625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/AnimationStateMachine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function createAnimationStateMachine(mixer, root, actions, additiveAction
157157
const rawSpeed = Math.sqrt(vx * vx + vz * vz)
158158
smoothSpeed += (rawSpeed - smoothSpeed) * Math.min(1, SPEED_SMOOTH * dt)
159159
if (!effectiveOnGround && !wasOnGround) sendLoco('JUMP')
160-
else if (!wasOnGround && effectiveOnGround && smoothSpeed < 1.5) {
160+
else if (!wasOnGround && effectiveOnGround) {
161161
sendLoco('LAND'); oneShot = 'JumpLand'; oneShotTimer = STATES.JumpLand.duration
162162
} else if (effectiveOnGround) sendLoco(resolveLocoEvent(smoothSpeed, crouching, animConfig.skipWalk))
163163
}

0 commit comments

Comments
 (0)