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

Static and Kinetic Friction #88

Open
tojewel opened this issue Dec 14, 2023 · 0 comments
Open

Static and Kinetic Friction #88

tojewel opened this issue Dec 14, 2023 · 0 comments

Comments

@tojewel
Copy link

tojewel commented Dec 14, 2023

Hi all,

Thanks for developing such an amazing framework for Flutter. Using Froge2d, I am trying to develop a 2D board game (named Carrom) exactly like this one: https://play.google.com/store/apps/details?id=com.miniclip.carrom

Everything went fine until I hit the roadblock on implementing the Friction between the board and the pucks (bodies). If you look at the game in the link I provided, you will see the pucks are kind of steady when not applying enough force from a collision. On the other hand, they implemented the proper physics for Static and Kinetic friction when a body slides over a plane (explained here https://www.youtube.com/watch?v=RIBeeW1DSZg).

I tried to replicate that using restitution and the friction properties of the fixture but looks like the restitution is not exactly for this and the friction property is really for the collisions of two bodies, having nothing to do with the friction between the bodies and the unlying plane.

I tried using the FrictionJoint but that is also not implement the correct friction algorithm as per physics.

I am more interested in implementing static friction for my game. Tried looking into the Collision code but the code is very cryptic for me.

Wondering, if anybody had the same issue, or if you have any suggestions.

Feel free to check out the game I am developing here https://gg-carrom.web.app/

Thanks!

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

No branches or pull requests

1 participant