Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow access to PhysicsDirectSpaceState3D from outside the main thread.

Aperta
#973 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Arctis-Fireblight ci sta già lavorando.

Dal 14/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

discussion enhancement topic:physics
Tested versions

This issue is present when using a physics engine module such as GodotPhysics or the new JoltPhysics module.
This is not an issue when using Jolt physics as a GDExtension.

System information

Windows 11

Issue description

The following code prevents access to the PhysicsDirectSpaceState3D outside of the main thread, https://github.com/Redot-Engine/redot-engine/blob/da61fa2c4549ca21d4ee13031177593280395c74/servers/physics_server_3d_wrap_mt.h#L116-L120

I don't believe this check is necessary as there is another check later that verifies that the space state is available, https://github.com/Redot-Engine/redot-engine/blob/da61fa2c4549ca21d4ee13031177593280395c74/modules/jolt_physics/jolt_physics_server_3d.cpp#L233-L239

Removing the main thread check in a custom build allows my project to work with the integrated Jolt physics module just as it does with the GDExtension version.

Steps to reproduce

Attempt a raycast from a thread or from a node running on a sub thread group.

Minimal reproduction project (MRP)

N/A

Lingua principale
C++
Stelle
6.1k
Fork
337
Merge medio
2g 2h
PR unite (30g)
36

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Redot-Engine/redot-engine

Tutte le issue di Redot-Engine/redot-engine

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.