Skip to content

Conversation

@kylesower
Copy link
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.

Copy link
Contributor

@ThierryBerger ThierryBerger left a comment

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
4 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