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

Rigidbody 2D with no damp still slows down #81

Open
GeminiSquishGames opened this issue Apr 23, 2024 · 2 comments
Open

Rigidbody 2D with no damp still slows down #81

GeminiSquishGames opened this issue Apr 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@GeminiSquishGames
Copy link

GeminiSquishGames commented Apr 23, 2024

I think this one is legit. So in the Godot phys engine, objects with zero linear damp will go in their direction forever. Likewise, zero angular damp should spin forever. In Godot Rapier both linear and angular slow over time with zero damp, tossing the first law of motion out the window like a baby with the bath water... or something.

Anything that moves in this project exhibits the behavior: https://github.com/GeminiSquishGames/Rapier2Dbug

Seems like Replace rather than Combine mode helps, but this isn't how Godot works. Pretty sure zero damp should let the object move forever unless acted upon in order to simulate it right... I think.

@GeminiSquishGames GeminiSquishGames added the bug Something isn't working label Apr 23, 2024
@Ughuuu
Copy link
Contributor

Ughuuu commented Apr 24, 2024

In the project you linked, you have linear damp and angular damp set up on the project settings(eg. physics/2d/default_linear_damp and physics/2d/default_angular_damp). If you set them to 0, then if you set the object damp to 0 also, it will work. Otherwise, you have to set replace so it overrides the default damp.

I thought there was a difference from godot, but it seems to be the same implementation wise. I'll investigate, initially I thought it's related to friction, but I don't think it is.

@Ughuuu
Copy link
Contributor

Ughuuu commented Apr 24, 2024

Describe your use case and what doesn't work better, the project you linked is a complicated project and it's not immediately obvious what the issue is.
Or what properties are set and on what nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants