Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

Update snap to ground documentation to match implementation#136

Merged
ThierryBerger merged 1 commit into
dimforge:masterfrom
kylesower:master
Apr 4, 2025
Merged

Update snap to ground documentation to match implementation#136
ThierryBerger merged 1 commit into
dimforge:masterfrom
kylesower:master

Conversation

@kylesower

Copy link
Copy Markdown
Contributor

I'm writing a game that makes use of rapier, and I was scratching my head for quite a while trying to figure out why snap to ground wasn't working. Turned out to be because of this line of code. Whereas the docs say that snapping to ground requires no up component, the implementation actually requires it to be less than -1e-5. I had been setting it to 0 when grounded, thus the confusion.

@ThierryBerger ThierryBerger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'm approving ; I'm linking dimforge/rapier#481 though to remember switching that back if we end up changing the behaviour.

@ThierryBerger ThierryBerger merged commit 4d128db into dimforge:master Apr 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants