Mattiny / yamms

Yet Another MultiMesh Scatter for Godot
MIT License
31 stars 3 forks source link

Nullpointer during Raycast in "Drop On Floor" #9

Closed Mattiny closed 5 days ago

Mattiny commented 1 year ago

A user reported a Nullpointer Exception during the raycast in "Drop on Floor".

Analysis shows: Somehow the "get_world_3d().direct_space_state" must be null then.

proti1 commented 1 year ago

I had the same problem, go to Project Settings (with Advanced Settings enabled) -> Physics -> 3D and uncheck "Run on Separate Thread". After restart it worked for me.

Mattiny commented 1 year ago

@proti1 Thanks a lot for your feedback. This helps a lot to investigate this case further and to find a solution. Now i can try to reproduce this error and to hopefully fix it.

Mattiny commented 5 days ago

Fix in 1.2.0: Generating position takes place in "physics_process". So the raycast works even in multithreaded configuration.