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

Physics doesn't factor in scale #6470

Closed
robertdhernandez opened this issue Sep 12, 2016 · 2 comments
Closed

Physics doesn't factor in scale #6470

robertdhernandez opened this issue Sep 12, 2016 · 2 comments
Labels

Comments

@robertdhernandez
Copy link
Contributor

Operating system or device - Godot version:
Windows 10 - Godot Engine v2.2.alpha.custom_build dc6eefd

Issue description (what happened, and what was expected):
Changing the scale of an object that uses Rigidbody2D resets the scale at run-time.

Steps to reproduce:
Create a Rigidbody2D node
Attach a sprite for visual feedback (or print get_scale())
Change the scale on the Rigidbody2D node to any other value
Run the game

@robertdhernandez
Copy link
Contributor Author

I found the problematic line here, and after making a dumb workaround (caching the scale), I discovered the root problem: the physics engine doesn't take scale into account.

@robertdhernandez robertdhernandez changed the title Rigidbody2D resets scale Physics doesn't factor in scale Sep 12, 2016
@akien-mga
Copy link
Member

I guess it's the same bug as #5734.

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

No branches or pull requests

2 participants