Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bounciness #345

Closed
ghost opened this issue Jul 7, 2023 · 2 comments
Closed

Bounciness #345

ghost opened this issue Jul 7, 2023 · 2 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jul 7, 2023

I'm setting:

collider->getMaterial().setBounciness(0.0)

On my colliders, and they still bounce a lot. Any ideas?

@DanielChappuis
Copy link
Owner

In a contact between two bodies the largest bounciness factor of the two colliders is used. Therefore, if you want no bounciness at all in a contact, you need to set the bounciness factor of both colliders to zero.

@ghost
Copy link
Author

ghost commented Jul 10, 2023

Thanks, that helps me fix my problem. Did you consider taking an average instead out of interest?

@ghost ghost closed this as completed Jul 10, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant