-
Notifications
You must be signed in to change notification settings - Fork 18
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 bumper collisions to account for rubber #71
Comments
Hey! I'd like to take this up, if that's okay. |
If you press H the preference dialog appears. Note other settings like
ball mass, friction, etc... the coefficient of restitution could be one of
these settings. Not sure what value to use but some experimentation would
be needed. Thanks in advance if you take this ticket @kinnerapriyap !
|
I put in a range up to 5 for bumperBounce (least to most bounce) because you've used such a range for the rest of the preferences. Do let me know if you'd like a different range. |
@kinnerapriyap brining over your comment from the closed PR: I think if the angle stayed the same (or wasn't as a pronounced change) and only the velocity changed would be best. If you want to continue this, can you reopen the PR and tweak this behavior? Playing in real life the ball collisions with bumpers does cause an angle change based on speed but it is very minor. |
Currently the bumper collisions are treated as elastic collisions just like striking a mirror.
Note the velocity is simply flipped. We should account for some velocity decrease after striking the rubber bumper. Also make this rubber bounce be a preference.
The text was updated successfully, but these errors were encountered: