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 lose bounce enegy with bounce 1 #82945

Closed
jpVm5jYYRE1VIKL opened this issue Oct 7, 2023 · 1 comment · Fixed by #82968
Closed

Rigidbody lose bounce enegy with bounce 1 #82945

jpVm5jYYRE1VIKL opened this issue Oct 7, 2023 · 1 comment · Fixed by #82968

Comments

@jpVm5jYYRE1VIKL
Copy link

Godot version

4.1.1

System information

Godot v4.1.1.stable unknown - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Wed Sep 13 14:10:57 UTC 2023 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (nvidia; 535.104.05) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)

Issue description

Well i created simple test project to test bounces and found that physics calculations in my opinion work not right.
I am not sure is it a bug but i almost sure that exist calculation mistake which in my opinion too big. And due to it Rigidbody loose energy too fast than it have to be in case if used bounce property = 1. In ideal situation i expect that Rigidbody have to bounce endless to same height. I attached simple project which illustrate issue.

Steps to reproduce

  1. load and start attached project.
  2. wait 5-10 seconds
  3. See that ball loose height quite fast

Minimal reproduction project

sidegame1.zip

@mrcdk
Copy link
Contributor

mrcdk commented Oct 7, 2023

This isn't a bug per se. By default there's a global linear and angular dampening values.

You can change the default values in the project settings under Physics/3D and enabling Advanced settings. You can also control each RigidBody3D dampening mode in the inspector under Linear/Damp Mode and Angular/Damp Mode Set them to Replace and the Damp values to 0 to remove any dampening and the ball will bounce infinitely.

@Calinou Calinou added documentation and removed bug labels Oct 7, 2023
@AThousandShips AThousandShips changed the title Rigidbody loose bounce enegy with bounce 1 Rigidbody lose bounce enegy with bounce 1 Oct 7, 2023
@akien-mga akien-mga added this to the 4.3 milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants