Page 1 of 1

Garbage collection deletes rigidbodies created via PhysicsServer3D (C#)

Posted: Sun Aug 06, 2023 2:58 pm
by Raymond
So I'm creating rigidbodies with visuals via the PhysicsServer3D and RenderinServer, and everything is working fine until suddenly the garage collector kicks in and deletes everything. So how to prevent that and keep my rigidbodies around? Using Godot 4.2 Dev 2 and C#. Thanks in advance if anyone can help me with this 👍

Re: Garbage collection deletes rigidbodies created via PhysicsServer3D (C#)

Posted: Mon Aug 07, 2023 11:20 am
by Tomcat
Raymond wrote: Sun Aug 06, 2023 2:58 pm and everything is working fine until suddenly the garage collector kicks in and deletes everything.
This seems like a grave mistake. I think it should be reported.

Re: Garbage collection deletes rigidbodies created via PhysicsServer3D (C#)

Posted: Mon Aug 07, 2023 5:23 pm
by stayathomedev
Raymond wrote: Sun Aug 06, 2023 2:58 pm So I'm creating rigidbodies with visuals via the PhysicsServer3D and RenderinServer, and everything is working fine until suddenly the garage collector kicks in and deletes everything. So how to prevent that and keep my rigidbodies around? Using Godot 4.2 Dev 2 and C#. Thanks in advance if anyone can help me with this 👍
Ditto on the report...will either get an answer on this odd behavior or potentially get it fixed