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

Bounce property of RigidBody2D physics material is ignored after saving scene #45331

Open
Tracked by #45334
theolen opened this issue Jan 20, 2021 · 3 comments
Open
Tracked by #45334

Comments

@theolen
Copy link

theolen commented Jan 20, 2021

Godot version:

3.2.3 stable official

OS/device including version:

Macbook Air M1 base model, MacOS 11.1 Big Sur

Issue description:

Following steps in tutorial https://docs.godotengine.org/en/stable/getting_started/step_by_step/instancing.html
Setting 'Bounce' property of the ball's Physics Material to 1 failed to increase bounciness.

You can also reproduce it by creating a new RigidBody2d and observing how it respects the Bounce property in the editor until it is 'saved as a scene', then the setting in the editor is ignored, and seemingly overridden by the saved file.

Steps to reproduce:
Open Minimal reproduction project
Play project and observe bounciness of ball
Set Ball>Physics Material>Bounce to 1
Play project and observe bounciness of ball has not changed

Minimal reproduction project:

Instancing.zip

@pouleyKetchoupp
Copy link
Contributor

@theolen Could you please add a minimal project at the step you're at in the tutorial? It would make testing much easier for contributors.

@pouleyKetchoupp pouleyKetchoupp changed the title Bug in Instancing tutorial Bounce property of RigidBody2D physics material is ignored after saving scene Jan 20, 2021
@theolen
Copy link
Author

theolen commented Jan 20, 2021

@theolen Could you please add a minimal project at the step you're at in the tutorial? It would make testing much easier for contributors.

Ok, here you go. Should be very quick to test now.

@pouleyKetchoupp
Copy link
Contributor

Reproduced in 3.2.4 beta 6.

It looks like a general limitation with resources from inherited scenes. Changing the bounce property in the parent scene works properly, but when changing the value in the instantiated scene, it gets discarded when saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants