Skip to content

➕ Add static friction to orbit controls.#427

Open
DanielAtCosmicDNA wants to merge 1 commit intopmndrs:mainfrom
CosmicDNA:feature/static-friction-orbit-controls
Open

➕ Add static friction to orbit controls.#427
DanielAtCosmicDNA wants to merge 1 commit intopmndrs:mainfrom
CosmicDNA:feature/static-friction-orbit-controls

Conversation

@DanielAtCosmicDNA
Copy link

Why

The orbit controls, when damping is used, behave in a way that the deceleration is excessively long and would tend to infinite if it weren't for the arithmetic precision limitation.

This situation makes comparing the speed to 0 a lengthy process.

What

The solution is to add a static friction parameter that always opposes the movement with fixed configurable strength. This guarantees that the coasting is much more consistent when damping is enabled.

Checklist

  • Documentation updated
  • Storybook entry added
  • Ready to be merged

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 8, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

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