Skip to content

Keep low-speed craft movement between short sim steps - #67

Merged
elyosh merged 1 commit into
elyosh:mainfrom
raistlen007:fix/low-speed-motion-n
Nov 7, 2026
Merged

elyosh merged 1 commit into
elyosh:mainfrom
raistlen007:fix/low-speed-motion-n

Conversation

@raistlen007

Copy link
Copy Markdown
Contributor

Slow craft lost most of their forward movement when the simulation ran in short steps, so docking approaches crawled or stalled, and a nearly level craft sank because small negative motion components floored to -1 while positive ones became 0.

Measure each step's forward distance against the game clock's position within its 236-tick second, so every second covers the full distance. Carry the sub-unit remainder per axis for craft too, reusing the projectile carry (now named for any object and reset for every new object). A draining push accumulator now steps toward zero by its own sign, so +1 no longer bounces between +1 and +2.

All changes are limited to the modern build.

Slow craft lost most of their forward movement when the simulation ran
in short steps, so docking approaches crawled or stalled, and a nearly
level craft sank because small negative motion components floored to -1
while positive ones became 0.

Measure each step's forward distance against the game clock's position
within its 236-tick second, so every second covers the full distance.
Carry the sub-unit remainder per axis for craft too, reusing the
projectile carry (now named for any object and reset for every new
object). A draining push accumulator now steps toward zero by its own
sign, so +1 no longer bounces between +1 and +2.

All changes are limited to the modern build.
@elyosh
elyosh merged commit 72eb1b6 into elyosh:main Nov 7, 2026
3 checks passed
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.

2 participants