Skip to content

Fix gliding at the end of jump - #1040

Closed
kroplabeskidu wants to merge 1 commit into
Try:masterfrom
kroplabeskidu:fix-jump-glide
Closed

kroplabeskidu wants to merge 1 commit into
Try:masterfrom
kroplabeskidu:fix-jump-glide

Conversation

@kroplabeskidu

Copy link
Copy Markdown
Contributor

jumping downhill the hero kind of floats/glides after the takeoff anim, two things there

T_RUNL_2_JUMP has 21 frames but root motion only has 20 steps, so in the last 40ms translateXZ wrapped around to the start of the arc and the hero got pushed up again mid air. now transitions are clamped to the last root sample and fly transitions keep their last speed till the end

fall speed after takeoff was the average over the whole arc (almost no vertical speed, too fast forward). vanilla starts physics at S_JUMP with velocity from the last few frames, so now it just takes the current speed. comes out ~2.7m/s down instead of ~0.2

with this, fall damage depends more on #1022 (otherwise horizontal speed counts as fall height, in g1 you can die jumping down a small slope)

related #939 #944

Root motion of transitions is clamped to the last sample (numFrames-1), not totalTime, so jump doesn't wrap to the start of the arc. Fall speed after takeoff uses current speed instead of average over the whole jump, like vanilla.
@kroplabeskidu kroplabeskidu closed this by deleting the head repository Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant