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

Change default coefficient of restitution to 0.0 #503

Open
Jondolf opened this issue Aug 30, 2024 · 0 comments
Open

Change default coefficient of restitution to 0.0 #503

Jondolf opened this issue Aug 30, 2024 · 0 comments
Labels
A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on C-Breaking-Change This change removes or changes behavior or APIs, requiring users to adapt C-Enhancement New feature or request D-Easy Nice and straightforward! Requires little to no knowledge of physics or the engine's internals

Comments

@Jondolf
Copy link
Owner

Jondolf commented Aug 30, 2024

Currently, the coefficient of restitution is 0.3 by default. This is quite arbitrary, and can lead to confusion when specifying a restitution of zero for only one entity, as there will still be some bounciness, because collisions (by default) use the average of the coefficients of the colliding entities.

The default should be changed to 0.0. This is consistent with all other game engines and physics engines I've checked, such as Godot, Unity, Box2D, and Rapier.

Note that it might make sense to change the default friction coefficient as well. Currently, it is 0.3, but most engines use either 0.6 or 1.0. This may be worth its own issue though.

@Jondolf Jondolf added C-Enhancement New feature or request A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on C-Breaking-Change This change removes or changes behavior or APIs, requiring users to adapt D-Easy Nice and straightforward! Requires little to no knowledge of physics or the engine's internals labels Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on C-Breaking-Change This change removes or changes behavior or APIs, requiring users to adapt C-Enhancement New feature or request D-Easy Nice and straightforward! Requires little to no knowledge of physics or the engine's internals
Projects
None yet
Development

No branches or pull requests

1 participant