appsinacup / godot-rapier-physics

Godot Rapier Physics – 2D and 3D physics engine for the Godot game engine. with better stability, performance, liquids, determinism, state serialization and no ghost collisions.
https://godot.rapier.rs
MIT License
397 stars 22 forks source link

Error on executing Fluid3d initialization scripts. #287

Open TheAndiKurz opened 2 weeks ago

TheAndiKurz commented 2 weeks ago

Describe the bug

After installing: When attaching the addons/godot-rapier3d/fluid_3d_box.gd script onto a Fluid3D Node and changing the values of the script it should create the meshes in the Editor and they should be seen.

But for I got an error when changing any value of the script. Script Error

To Reproduce

Steps to reproduce the behavior:

Expected behavior

When I change any of the values of the script I expect that in the editor multiple spheres show up in a grid that is 10x10x10 (values in the script of Fluid3D).

I expected all the spheres to be normally distributed (same distance between them).

As it also shows the spheres, when creating them directly in the Fluid3D points property.

Environment:

Example project(zip)

Please attach a zip with project where issue occurs. Remove the addons folder so that the size is less than 25 mb.

rapier-fluid-bug.zip

Ughuuu commented 3 days ago

I think a better option for this would be to add an editor plugin button in the 2d/3d scene view instead of a script.