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

2D Simulation freezes when setting CollisionPolygon2D polygon array #333

Open
JakSparro98 opened this issue Jan 7, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@JakSparro98
Copy link

Describe the bug

I'm using godot 4.3 with C#, since there isn't a direct binding to the RapierPhysicsServer2D with the Mono API (or at least I'm too dumb to figure it out) I'm using the ClassDB.Instantiate method to obtain a way to use it to manual step the physics space.

Now, when using relatively high number of rigid bodies some of them freezes, it seems to happen only when two conditions are met: by calling Instantiate inside an _EnterTree method and at the same time setting a new polygon array for CollisionPolygon2D inside an _Ready method.

Environment:

  • OS: Windows 10
  • Version: 0.8.8 - 0.8.9 (both affected)
  • Godot Version: v4.3.stable.mono.official
  • Type: simd single 2d /enhanced (both affected)

Example project(zip)

rapier-polygon-bug.zip

@JakSparro98 JakSparro98 added the bug Something isn't working label Jan 7, 2025
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

1 participant