-
Notifications
You must be signed in to change notification settings - Fork 26
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
Friction missing from gamephys #298
Comments
Hi Henry. The documentation is not as explicit as it should be, but in the first version of our 2D physics engine we originally intended to assume there was no friction. This was to keep things simple. The friction in the Chipmunk code is because the developer of Chipmunk did not make the same assumption and Luthfi did not delete that part of the code. We have been using the Chris Hecker papers as our guide, and he neglects friction at the point of collision. We do not currently have a model for friction, although you are free to propose one and we can decide whether or not to incorporate it. Something else that is missing that is related is solving for the motion constraints. We actually have quite a bit of material worked out on this that you might not be aware of. I just had a look at the Case Study folder in our repo and the SRS for Constraints is not included. I'll add it shortly. Please have a look at this document. We can then discuss with @szymczdm whether or not to write this material in Drasil. It is a longish document, so this would take some time. Although not currently covered, I believe that friction is usually handled in the same way as the constraints in the new "physics" file in commit ff7c207. |
@smiths could you review this? When something is a really long-term feature request, I've been closing the issue but putting a link to it on the wiki. |
Good idea to close this issue for now. I've added a link in the wiki (https://github.com/JacquesCarette/Drasil/wiki), as you suggested. |
friction is mentioned a single time in the SRS and MIS for gamephys but it is never defined anywhere and it is used in the example for the code. There is no definition equations or explanation for how it is used in gamephys.
It probably should be added? Should I pull an equation from how the code uses it? or is there a reference for it somewhere?
The text was updated successfully, but these errors were encountered: