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

Disabling and Re-enabling CollisionShape2Ds is Broken #271

Closed
jmengenge opened this issue Oct 7, 2024 · 1 comment · Fixed by #270
Closed

Disabling and Re-enabling CollisionShape2Ds is Broken #271

jmengenge opened this issue Oct 7, 2024 · 1 comment · Fixed by #270
Labels
bug Something isn't working

Comments

@jmengenge
Copy link

Describe the bug

Transforms of collision shapes that have been disabled are ignored

To Reproduce

If at any point a CollisionShape2D is set to "disabled=true" then its local position will be totally ignored for all future collisions if it is re-enabled

Expected behavior

It should simply keep the same transform

Environment:

  • OS: MacOS
  • Version: 12.7.6
  • Godot Version: 4.3
  • Type: godot-rapier-2d-single-simd-parallel

Example project(zip)
distancetest.zip

@jmengenge jmengenge added the bug Something isn't working label Oct 7, 2024
@Ughuuu
Copy link
Contributor

Ughuuu commented Oct 7, 2024

Looks like it was reusing old shape after re-activating it. Have a possible fix I will try to implement.

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

Successfully merging a pull request may close this issue.

2 participants